Using type hints to translate Python to Cython
问题 Type Hints now are available in Python 3.5 version. In the specification (PEP 484) the goals (and the non-goals) are exposed clearly: Rationale and Goals This PEP aims to provide a standard syntax for type annotations, opening up Python code to easier static analysis and refactoring, potential runtime type checking, and (perhaps, in some contexts) code generation utilizing type information. [...] Of these goals, static analysis is the most important. Non-goals Using type hints for performance