Skip to content

PEP 484: Add @type_check_only #858

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 12, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pep-0484.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2047,6 +2047,10 @@ Convenience definitions:
* @no_type_check_decorator, a decorator to create your own decorators
with the same meaning as ``@no_type_check`` (see below)

* @type_check_only, a decorator only available during type checking
for use in stub files (see above); marks a class or function as
unavailable during runtime

* @overload, described earlier

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