Open
Description
- Use Type Hinting Generics in Standard Collections (
list
,dict
,type
overtyping.List
etc.) - Use
from __future__ import annotations
- Use PEP 604: New Type Union Operator, i.e.
TheType | None
instead ofOptional[TheType]
- Use "bare" annotations for forward declarations instead of stringified ones
- Configure ruff to enforce
from __future__ import annotations
on every file for consistency
- Use PEP 604: New Type Union Operator, i.e.
- Remove redundant type annotations from Sphinx docstrings (and possibly configure Sphinx to pick up the annotations, not sure what's needed for that nowadays)
Originally posted by @The-Compiler in #605 (review)
Metadata
Metadata
Assignees
Labels
No labels