-
-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Module overrides member #222
Comments
This seems to be handled here: Lines 186 to 208 in 039a702
I'm not 100% familiar with the codebase, but I wonder if members should be come a |
Thanks for the repro! Yes, that's a known issue. It's actually a design flaw. When I designed Griffe, I centered it around the syntax to access objects: Instead of using (name, kind) tuples, the solution I envision is to split submodules out of the As you can guess, that's quite a refactor, as there are a lot of places in the code that will need an update, so I kinda focused my energy elsewhere in the meantime 😅 But this issue is definitely in the 1.0 milestone (which exists only in my head): I will not release v1 before it is fixed. Now if someone wants to take a stab at it, I'd gladly review a PR. The spec is simple (new |
I'll close as duplicate of #124. |
Reproduction here: https://github.com/patrick-bug-repro/griffe-member-module
In my case I have a module with the same name as one of the function in a
__init__.py
file, it's a bit odd, but it works in python, unfortunately it looks like griffe is overriding it.output:
I'd expect to see the type function inside the members there too :)
The text was updated successfully, but these errors were encountered: