module documentation

Semantic analysis of named tuple definitions. This is conceptually part of mypy.semanal.

Class NamedTupleAnalyzer No class docstring; 0/2 instance variable, 6/10 methods documented
Constant NAMEDTUP_CLASS_ERROR Undocumented
Constant NAMEDTUPLE_PROHIBITED_NAMES Undocumented
Constant SELF_TVAR_NAME Undocumented
NAMEDTUP_CLASS_ERROR: str = (source)

Undocumented

Value
'Invalid statement in NamedTuple definition; expected "field_name: field_type [=
 default]"'
NAMEDTUPLE_PROHIBITED_NAMES: tuple[str, ...] = (source)

Undocumented

Value
('__new__',
 '__init__',
 '__slots__',
 '__getnewargs__',
 '_fields',
 '_field_defaults',
 '_field_types',
...
SELF_TVAR_NAME: str = (source)

Undocumented

Value
'_NT'