-
-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
AliasResolutionError
with a suspected fix.
#114
Comments
Hello, thanks a lot for the detailed report, for the time you took to investigate, and for the suggested fix 🚀! I'm very curious as to how you found that this change would fix the issue. I guess you ran a debugging session? |
Thanks for the swift response! Appreciate you looking into it.
Honestly, I didn't spend a lot of time into it, and my hunch originated from the griffe/src/griffe/dataclasses.py Line 409 in 2c3b0ce
The type hints in the initializer suggests
Unfortunately, yes, it's a private repo, and I did put in some effort into setting up a minimal repro, but that didn't work. I am hoping the traceback, and my line of thought above could assist you in some way? |
Should be fixed by 37ae0a2, thanks again @deepandas11. I'll try to pack a few more things before the next release. |
Describe the bug
I encountered this when using
mkdocstrings
on a fairly large mono-repo style codebase withmkdocs-monorepo
.The python handler from
mkdocstrings
would eventually trickle down togriffe.loader.resolve_module_aliases
and would fail for a certain file.Traceback
However, I followed a hunch and was able to fix it magically by monkeypatching a fix in
expressions
:griffe/src/griffe/expressions.py
Lines 32 to 33 in 2c3b0ce
I simply added a path to allow
str
typesTo Reproduce
I haven't been able to find a demonstrable repro on a smaller scale, which makes me believe this could also stem from a weird import order issue from the large codebase I am trying to handle.
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
System (please complete the following information):
griffe
version: 0.24.1mkdocstrings
version: 0.8.0Additional context
I haven't played around with the library too much and wasn't able to figure out the underlying reason. Looking for more context into this and if possible, to accommodate the simple fix?
The text was updated successfully, but these errors were encountered: