Typing information is trying hard to be compatible with all versions of Python, so it uses List instead of list, and has to worry about typing.Protocol not existing and a whole bunch of other baggage like Union everywhere | could be used. This also makes the documentation confusing. See also discussion in https://github.com/rogerbinns/apsw/pull/436
Redo the typing information using recent types and practises, even though it will become incorrect for the older Python versions. The typing does not affect runtime behaviour, only documentation and mypy.
Typing information is trying hard to be compatible with all versions of Python, so it uses List instead of list, and has to worry about typing.Protocol not existing and a whole bunch of other baggage like Union everywhere
|
could be used. This also makes the documentation confusing. See also discussion in https://github.com/rogerbinns/apsw/pull/436Redo the typing information using recent types and practises, even though it will become incorrect for the older Python versions. The typing does not affect runtime behaviour, only documentation and mypy.