-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Update doc for import discovery and qualified module names #9949
base: main
Are you sure you want to change the base?
Conversation
Don't think changelog needs to be updated for docs based on my understanding. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel like this is a great doc after a dive in what exactly the code is doing, but at the same time this so close to being a description of what the code is doing that it's going to be out of sync fast if we ever change the code, that I'm not sure we should add it to the doc. Or maybe with a warning to upgrade the doc in the code ? Waiting for another maintainer opinion about this.
Is another way to do import discovery and work with qualified module name is simpler and make more sense to you @akamat10 ? If so maybe we could change to it directly.
Thank you for going through this. It does require reading through the code :) to know it is correct. Mypy docs for reference where they describe their import discovery. The second option ie default in the doc is very similar to what pylint does if source-roots isn't specified. https://mypy.readthedocs.io/en/stable/running_mypy.html#mapping-file-paths-to-modules Personally I think something like this ought to be in the user guide and leaving it out makes it difficult to understand what is going on. The user may not know where the code is where this is happening. If the logic changes, we should update the doc. I am ok with documenting in the code that the doc should change to reflect it.
I assume you mean changing the current logic, right? I think |
Type of Changes
Description
Refs #9915