Skip to content

Instantly share code, notes, and snippets.

@mypy-play
Created April 25, 2024 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mypy-play/198b2ffe94b1ffd0f3c086bb5b65d76e to your computer and use it in GitHub Desktop.
Save mypy-play/198b2ffe94b1ffd0f3c086bb5b65d76e to your computer and use it in GitHub Desktop.
Shared via mypy Playground
# Sentinel to denote unset values
UNSET = object()
def foo(timezone: str | object | None = UNSET) -> None:
pass
if __name__ == "__main__":
foo()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment