Use type hint generics dict and list instead of typing.Dict and typing.List etc. across the entire codebase, as this is supported from Python 3.9 onwards; see PEP 585 for details.
Also check if any other changes introduced in Python 3.9 can be usefully applied to the codebase.
Use type hint generics
dictandlistinstead oftyping.Dictandtyping.Listetc. across the entire codebase, as this is supported from Python 3.9 onwards; see PEP 585 for details.Also check if any other changes introduced in Python 3.9 can be usefully applied to the codebase.