typing_extensions: add Self, Required, NotRequired (#6296)

This commit is contained in:
Jelle Zijlstra
2021-11-14 14:45:35 -08:00
committed by GitHub
parent 88f86a0180
commit 0860a911e9

View File

@@ -43,6 +43,9 @@ def runtime_checkable(cls: _TC) -> _TC: ...
runtime = runtime_checkable
Protocol: _SpecialForm = ...
Final: _SpecialForm = ...
Self: _SpecialForm = ...
Required: _SpecialForm = ...
NotRequired: _SpecialForm = ...
def final(f: _F) -> _F: ...