2 ms·
Above all, it's much more usable now, especially with 3.10 around the corner: - you can use list[] instead of typing.List[]. Same for dicts or sets. - you wil
by BiteCode_dev 5y ago
Above all, it's much more usable now, especially with 3.10 around the corner:
- you can use list[] instead of typing.List[]. Same for dicts or sets.
- you will be able to use bool | str instead of typing.Union[bool, str]
- mypy has saner default, is better supported by IDE and is way faster
- a lot of edge cases are now covered, including protocols for duck typing, vartype, etc.
- fantastic libs such as pydantic, fastapi and typer make using them a ton of fun