You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since https://peps.python.org/pep-0585/, type imports from the typing module are deprecated and should be replaced by the builtin classes or import from collections.abc (e.g. List[str]becomeslist[str]`. This simplifies the typing and removes unnecessary imports.
Since https://peps.python.org/pep-0585/, type imports from the
typing
module are deprecated and should be replaced by the builtin classes or import fromcollections.abc (e.g.
List[str]becomes
list[str]`. This simplifies the typing and removes unnecessary imports.There exists an automatic upgrade tool (https://github.com/asottile/pyupgrade/) as well as a flake8 plugin to enforce this rule (https://pypi.org/project/flake8-pep585/). I would suggest applying the former and adding the latter to our dev setup.
The text was updated successfully, but these errors were encountered: