`list` might be but `List` isn't. Are you not defining the type of the contents of the list?
https://docs.python.org/3/library/typing.html#typing.List
> Deprecated since version 3.9: builtins.list now supports subscripting ([]). See PEP 585 and Generic Alias Type.
`list` might be but `List` isn't. Are you not defining the type of the contents of the list?