PyDocs

Nav

Development Tools

TypedDict.__total__

typing

attribute of TypedDict
Point2D.__total__ gives the value of the total argument. Example:
1 Example
>>> from typing import TypedDict
>>> class Point2D(TypedDict): pass
>>> Point2D.__total__
True
>>> class Point2D(TypedDict, total=False): pass
>>> Point2D.__total__
False
>>> class Point3D(Point2D): pass
>>> Point3D.__total__
True
from the Python docs
See Also
No see-alsos for typing/TypedDict.__total__
0 Notes
No notes for TypedDict.__total__