-
-
Notifications
You must be signed in to change notification settings - Fork 3k
0.920: mypy failure claiming __path__ already exists #11769
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
Comments
Try removing the type annotation from |
That does indeed work [1]. As it's more glue work than actual code, I guess it's ok to apply your suggestion.
|
Actually mypy will still infer |
Thanks for the Correct:
FWIW, I'm gonna apply the suggestion [1] to our swh stack of code to unstuck our current Thanks again. |
You don't need to wrap As the issue is solved, can you close it? |
Yes, I was coming back to close it. Thanks again. |
Uh oh!
There was an error while loading. Please reload this page.
Hello,
Thanks for mypy!
I discovered a recent change in behavior regarding the following code [1]. Which worked
well under mypy up to 0.910 and is currently breaking on the new release 0.920.
I don't find any issue related to this nor any changelog entries which mentions anything
about this. I've marked this as a bug since the behavior changed but feel free to
recategorize if i'm wrong.
Do you have any hints as to what's the problem here?
Note that this is pkgutil namespace init.py that's replicated in twenty modules or
so. But currently, that problem appears in each module separately (see for example those
builds [3] [4]).
[1]
[2]
[3] https://jenkins.softwareheritage.org/view/swh-draft/job/DCORE/job/tests/1577/console
[4] https://jenkins.softwareheritage.org/view/swh-draft/job/DLDBASE/job/tests/1738/console
The text was updated successfully, but these errors were encountered: