Skip to content

Commit 6966646

Browse files
srittaugvanrossum
authored andcommitted
PEP 484: Add @type_check_only (#858)
Per discussion in python/typing#597.
1 parent 63821b0 commit 6966646

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pep-0484.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2047,6 +2047,10 @@ Convenience definitions:
20472047
* @no_type_check_decorator, a decorator to create your own decorators
20482048
with the same meaning as ``@no_type_check`` (see below)
20492049

2050+
* @type_check_only, a decorator only available during type checking
2051+
for use in stub files (see above); marks a class or function as
2052+
unavailable during runtime
2053+
20502054
* @overload, described earlier
20512055

20522056
* get_type_hints(), a utility function to retrieve the type hints from a

0 commit comments

Comments
 (0)