Codebase uses deprecated typing imports.
Ex. 1: ast.py L14: from typing import List, Optional, Union, Tuple
List and Tuple could be replaced with built-ins, and arguably Union could be replaced with | and Optional could be reveiwed.
Ex. 2: base.py L25: from typing import Iterator, Optional, Sequence, TypeVar
Iterator and Sequence should be imported from collections.abc.
Codebase uses deprecated typing imports.
Ex. 1:
ast.pyL14:from typing import List, Optional, Union, TupleListandTuplecould be replaced with built-ins, and arguablyUnioncould be replaced with|andOptionalcould be reveiwed.Ex. 2:
base.pyL25:from typing import Iterator, Optional, Sequence, TypeVarIteratorandSequenceshould be imported fromcollections.abc.