▲ | maleldil 7 months ago | ||||||||||||||||
The old stuff never stopped working, though. You can still use Optional, Union, TypeAlias, and import collection protocols from typing. You don't have to migrate if you don't want to. They're not even deprecated. | |||||||||||||||||
▲ | Hackbraten 7 months ago | parent | next [-] | ||||||||||||||||
I encourage you to open the `typing` documentation [0] and search for the word `deprecated`. Spoiler alert: the search result will be three-figure. Some of the results are already scheduled for removal. | |||||||||||||||||
| |||||||||||||||||
▲ | aragilar 7 months ago | parent | prev [-] | ||||||||||||||||
I've seen multiple major projects (such a sphinx) break on newer versions of Python due to changes in typing. Typing should make the code more robust, not less. | |||||||||||||||||
|