Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 75e13a0

Browse files
authored
Add Final to typing_extensions (#2453)
1 parent 5cda422 commit 75e13a0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

third_party/2and3/typing_extensions.pyi

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import sys
2-
import typing
2+
from typing import Callable
33
from typing import ClassVar as ClassVar
44
from typing import ContextManager as ContextManager
55
from typing import Counter as Counter
@@ -13,11 +13,14 @@ from typing import Type as Type
1313
from typing import TYPE_CHECKING as TYPE_CHECKING
1414
from typing import TypeVar, Any
1515

16+
_F = TypeVar('_F', bound=Callable[..., Any])
1617
_TC = TypeVar('_TC', bound=Type[object])
1718
class _SpecialForm:
1819
def __getitem__(self, typeargs: Any) -> Any: ...
1920
def runtime(cls: _TC) -> _TC: ...
2021
Protocol: _SpecialForm = ...
22+
Final: _SpecialForm = ...
23+
def final(f: _F) -> _F: ...
2124

2225
if sys.version_info >= (3, 3):
2326
from typing import ChainMap as ChainMap

0 commit comments

Comments
 (0)