We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I get a spurious top/fid/yod.py:6: error: "File" both defines "__slots__" and is used with "slots=True" [misc].
top/fid/yod.py:6: error: "File" both defines "__slots__" and is used with "slots=True" [misc]
Similar to #11821 / #11827, but a more involved repro. I found it not trivial to minimise the repro beyond the following script:
rm -rf top mkdir top echo 'from . import fid' > top/__init__.py mkdir top/fid echo 'from .dug import X from .fun import * from .yod import File' > top/fid/__init__.py echo 'from dataclasses import dataclass import top.fid.fun as T @dataclass class X(T.MB): ...' > top/fid/dug.py echo 'from dataclasses import dataclass from top import does_not_exist # type: ignore @dataclass class MB: ...' > top/fid/fun.py echo 'from dataclasses import dataclass import top @dataclass(slots=True) class File: path: str' > top/fid/yod.py mypy top
cc @sobolevn in case you're interested, since you fixed the previous report :-)
The text was updated successfully, but these errors were encountered:
sobolevn
No branches or pull requests
I get a spurious
top/fid/yod.py:6: error: "File" both defines "__slots__" and is used with "slots=True" [misc]
.Similar to #11821 / #11827, but a more involved repro. I found it not trivial to minimise the repro beyond the following script:
cc @sobolevn in case you're interested, since you fixed the previous report :-)
The text was updated successfully, but these errors were encountered: