mypy
Require first argument of namedtuple to match with variable name
#9577
Merged

Require first argument of namedtuple to match with variable name #9577

msullivan merged 11 commits into python:master from momohatt:fix-namedtuple
momohatt
momohatt Fail when first arg of namedtuple doesn't match the variable name
6d530873
momohatt Fix
d61619f9
momohatt Update comment in parse_namedtuple_args
15297b06
momohatt Return dummy name as the internal namedtuple name
1d9a69b3
momohatt Refine comment
98b4ebf6
momohatt Change context of error
9d2bf288
momohatt Fix 1st argument of namedtuple
273f0ed0
momohatt Remove testReexportNamedTupleChange
5ede060e
momohatt Add a test case where semanal for namedtuple is deferred
7f79fe84
momohatt Extract first argument only when namedtuple typechecked
2e8982e6
momohatt Make parse_namedtuple_args optionally return typename
fc43fdd1
msullivan
msullivan approved these changes on 2020-10-18
msullivan msullivan merged 9165bb11 into master 5 years ago
momohatt momohatt deleted the fix-namedtuple branch 5 years ago

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone