-
Notifications
You must be signed in to change notification settings - Fork 768
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
Wrong reportGeneralTypeIssues issued for attrs code with kw_only and overloading #4670
Comments
This would help me also! |
Attrs uses In any case, to make this work with pylance and other static analysis tools, you will need to modify your code slightly. In particular, you need to repeat the x: int = field(kw_only=True, default=20) |
Environment data
Code Snippet
Repro Steps
b = B(3,4)
as if it has an issueExpected behavior
Pylance shouldn't flag this kind of code
Actual behavior
Pylance shows the following
Logs
The text was updated successfully, but these errors were encountered: