We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Sentinels are also instances of themselves, so you can use the Sentinel as a type decorator. For example:
NOT_SET = Sentinel('not_set') def f(arg: Union[int, None, NOT_SET] = NOT_SET): pass
https://stackoverflow.com/questions/10936125/python-an-object-can-be-its-own-type
The text was updated successfully, but these errors were encountered:
This is blocking #41
Work is being done in core Python that may obviate this issue.
Sorry, something went wrong.
No branches or pull requests
Sentinels are also instances of themselves, so you can use the Sentinel as a type decorator. For example:
https://stackoverflow.com/questions/10936125/python-an-object-can-be-its-own-type
The text was updated successfully, but these errors were encountered: