Skip to content

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

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 11 commits into from
Oct 18, 2020
Prev Previous commit
Next Next commit
Add a test case where semanal for namedtuple is deferred
  • Loading branch information
momohatt committed Oct 12, 2020
commit 7f79fe84ac8768123da1b2b022b238abbc63e79c
3 changes: 3 additions & 0 deletions test-data/unit/check-namedtuple.test
Original file line number Diff line number Diff line change
Expand Up @@ -969,4 +969,7 @@ from collections import namedtuple

A = NamedTuple('X', [('a', int)]) # E: First argument to namedtuple() should be 'A', not 'X'
B = namedtuple('X', ['a']) # E: First argument to namedtuple() should be 'B', not 'X'

C = NamedTuple('X', [('a', 'Y')]) # E: First argument to namedtuple() should be 'C', not 'X'
class Y: ...
[builtins fixtures/tuple.pyi]
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy