Point2D.__total__ gives the value of the total argument. 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
typing/TypedDict.__total__
TypedDict.__total__