Skip to content

Latest commit

 

History

History
 
 

ch19-type-checking

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Python Type hinting

Python 3.5 introduced type hinting. This is a way to annotate your code with type information. This is not enforced by the Python interpreter, but it can be used by other tools to help you write better code.

PEP 484 https://peps.python.org/pep-0484/

Static Type Checking

mypy is a tool that can be used to check your code for type errors. It can be used as a command line tool or as a plugin for your editor.

mypy https://mypy-lang.org/

Annotations