In the code generation, py.typed files only need to be at the top level of packages, if I am not mistaken.
Package maintainers who wish to support type checking of their code MUST add a marker file named py.typed to their package supporting typing. This marker applies recursively: if a top-level package includes it, all its sub-packages MUST support type checking as well.
In the code generation,
py.typed
files only need to be at the top level of packages, if I am not mistaken.Source: PEP 561.