Skip to content
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

Regression: false positive when creating a TypedDict with total=False #7722

Closed
ilevkivskyi opened this issue Oct 16, 2019 · 0 comments · Fixed by #7723
Closed

Regression: false positive when creating a TypedDict with total=False #7722

ilevkivskyi opened this issue Oct 16, 2019 · 0 comments · Fixed by #7723
Assignees
Labels

Comments

@ilevkivskyi
Copy link
Member

ilevkivskyi commented Oct 16, 2019

On current master this code:

class B(TypedDict, total=False):
    x: int

fails with

test.py:3: error: Unexpected keyword argument "total" for "__init_subclass__" of "object"
/Users/ilevkivskyi/venvs/mypy_dev/lib/python3.7/site-packages/mypy/typeshed/stdlib/2and3/builtins.pyi:69: note: "__init_subclass__" of "object" defined here

I think this may be a release blocker @msullivan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant