OpenCyphal / pycyphal

Python implementation of the Cyphal protocol stack.
https://pycyphal.readthedocs.io/
MIT License
119 stars 106 forks source link

Adopt PEP 585 #135

Closed pavel-kirienko closed 2 years ago

pavel-kirienko commented 3 years ago

Replace pseudo-collections from typing with built-in types they represent. The pseudo-collections are deprecated as of Python 3.9, their removal is scheduled by v3.14.

https://www.python.org/dev/peps/pep-0585/

pavel-kirienko commented 3 years ago

Blocked on https://youtrack.jetbrains.com/issue/PY-27627

pavel-kirienko commented 2 years ago

I am closing this because updating them all at once doesn't seem practical. We will be gradually changing the old code to use new annotations, and once 3.14 is out, the remaining old annotations will quickly identify themselves and thus will be easy to fix.