A large number of collection built-ins were made generic in Python 3.9 as part of PEP 585 and their typing
module counterparts have been deprecated. Pydantic supports PEP 585 in 3.9 and above. Would you consider supporting forward-referenced 3.9-style generics in earlier versions of Python, i.e. when annotations are quoted or with from __future__ import annotations
? This might be as simple as creating aliases to typing
generics in the evaluation context of forward references, overwriting built-ins, in Python 3.8 and below.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4