Skip to content

Glossary: Refactoring and Clean Code

type hints

Also written: type hint, type annotations

Notes in a function signature, such as `city: str` and `-> float`, that tell callers what to pass and get back. Tools can check them.

Where the book teaches it

Related terms

Docstring