Sfoglia il codice sorgente

Add typing.(override, TypeIs, TypeGuard)

Hezekiah M. Carty 4 giorni fa
parent
commit
94c67437a8
2 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      python/typing.py
  2. 0 0
      src/common/_generated.c

+ 3 - 0
python/typing.py

@@ -50,6 +50,7 @@ TYPE_CHECKING = False
 
 
 # decorators
 # decorators
 overload = lambda x: x
 overload = lambda x: x
+override = lambda x: x
 final = lambda x: x
 final = lambda x: x
 
 
 # exhaustiveness checking
 # exhaustiveness checking
@@ -59,5 +60,7 @@ TypedDict = dict
 NotRequired = _PLACEHOLDER
 NotRequired = _PLACEHOLDER
 ReadOnly = _PLACEHOLDER
 ReadOnly = _PLACEHOLDER
 Required = _PLACEHOLDER
 Required = _PLACEHOLDER
+TypeIs = _PLACEHOLDER
+TypeGuard = _PLACEHOLDER
 
 
 cast = lambda _, val: val
 cast = lambda _, val: val

File diff suppressed because it is too large
+ 0 - 0
src/common/_generated.c


Some files were not shown because too many files changed in this diff