Skip to content

Commit

Permalink
add annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
JelleZijlstra committed May 15, 2024
1 parent 0873df6 commit 577d276
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mypy/semanal_namedtuple.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ def parse_namedtuple_args(
if not types:
types = [AnyType(TypeOfAny.unannotated) for _ in items]
processed_items = []
seen_names = set()
seen_names: set[str] = set()
for i, item in enumerate(items):
problem = self.check_namedtuple_field_name(item, seen_names)
if problem is None:
Expand Down

0 comments on commit 577d276

Please sign in to comment.