The typing.NamedTuple class syntax only looks at the namespace's __annotations__ when creating a named tuple, which means that any attribute without a type annotation is not considered to be a field: ...
If you've ever worked in node, you might be familiar with a language feature which allows you to pull in a json file as an imported module. To use this in your own project, install with pip. pip ...