Skip to content

Latest commit

 

History

History

0x00-python_variable_annotations

img

meme

About

Python variable annotation, also known as type hinting, is a feature introduced in Python 3.5 that allows you to provide type information for variables, function arguments, and return values. It helps improve code readability, enables static type checkers, and provides better IDE support

Concepts

For this project, you are expected to look at the following concepts

Resources

Read or Watch:

  1. Python 3 typing documentation
  2. MyPy cheat sheet

Learning objectives

At the end of this project, you are expected to be able to explain to anyone, without the help of Google:

  • Type annotations in Python 3
  • How you can use type annotations to specify function signatures and variable types
  • Duck typing
  • How to validate your code with mypy