Skip to content

Commit

Permalink
Change two uncertain allow_unpack=True kwargs to TODO comments
Browse files Browse the repository at this point in the history
  • Loading branch information
erikkemperman committed May 8, 2024
1 parent 591f377 commit 6f92522
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mypy/semanal_typeddict.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ def analyze_typeddict_classdef_fields(
analyzed = self.api.anal_type(
stmt.type,
allow_required=True,
allow_unpack=True,
# TODO allow_unpack=True ?
allow_placeholder=not self.api.is_func_scope(),
prohibit_self_type="TypedDict item type",
)
Expand Down Expand Up @@ -529,7 +529,7 @@ def parse_typeddict_fields_with_types(
analyzed = self.api.anal_type(
type,
allow_required=True,
allow_unpack=True,
# TODO allow_unpack=True ?
allow_placeholder=not self.api.is_func_scope(),
prohibit_self_type="TypedDict item type",
)
Expand Down

0 comments on commit 6f92522

Please sign in to comment.