Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Signed-off-by: David Rotermund <54365609+davrot@users.noreply.github.com>
  • Loading branch information
davrot authored Nov 23, 2023
1 parent c67be15 commit 5f2573b
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion python_typing/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,25 @@ def this_is_a_function(a: int, b: int = 8) -> tuple[int, int]:
return a, b
```

Please note, that there is a difference how type annotations worked for older version. I will cover only Python 3.10 and newer.
Please note, that there is a difference how type annotations worked for older version. I will cover only Python 3.10 and newer. The official documentation can be found [here](https://docs.python.org/3/library/typing.html).

## MyPy under VS Code
(also the header packages)

## Built-in types
### Simple types
### Any type (Special type indicating an unconstrained type.)

```python
from typing import Any
a: Any = 0
b: float = 0.0
a = b
```

### Generic types





0 comments on commit 5f2573b

Please sign in to comment.