Python 3.5 type hinting does not result in an error

See the fifth paragraph of the abstract in the PEP you link to:

While these annotations are available at runtime through the usual __annotations__ attribute, no type checking happens at runtime . Instead, the proposal assumes the existence of a separate off-line type checker which users can run over their source code voluntarily

Leave a Comment