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
Update comment in parse_namedtuple_args
  • Loading branch information
momohatt committed Oct 11, 2020
commit 15297b06d6e592a339f2d0920d3ab1d01dc379b1
2 changes: 1 addition & 1 deletion mypy/semanal_namedtuple.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def parse_namedtuple_args(self, call: CallExpr, fullname: str
Returns a 4-tuple:
- List of argument names
- List of argument types
- Number of arguments that have a default value
- List of default values
- Whether the definition typechecked.

Return None if at least one of the types is not ready.
Expand Down
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