8000 Add `ReadOnly` support for TypedDicts by sobolevn · Pull Request #17644 · python/mypy · GitHub
[go: up one dir, main page]

Skip to content

Add ReadOnly support for TypedDicts #17644

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

Merged
merged 10 commits into from
Sep 30, 2024
Prev Previous commit
Next Next commit
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 14, 2024
commit b8cd6f1cb4b63ddf93cde9c47a0d7fd88d9a703d
5 changes: 1 addition & 4 deletions mypy/plugins/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,10 +426,7 @@ def typed_dict_delitem_callback(ctx: MethodContext) -> Type:
return ctx.default_return_type


_TP_DICT_MUTATING_METHODS: Final = frozenset({
"update of TypedDict",
"__ior__ of TypedDict",
})
_TP_DICT_MUTATING_METHODS: Final = frozenset({"update of TypedDict", "__ior__ of TypedDict"})


def typed_dict_update_signature_callback(ctx: MethodSigContext) -> CallableType:
Expand Down
Loading
0