Skip to content

Instantly share code, notes, and snippets.

@mypy-play
Created April 26, 2024 10:56
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/f4fb9757b0494bdbb6ca1778f310a72c to your computer and use it in GitHub Desktop.
Save mypy-play/f4fb9757b0494bdbb6ca1778f310a72c to your computer and use it in GitHub Desktop.
Shared via mypy Playground
import typing
class typed_dict(typing.TypedDict, total=False):
user_id: int
class HasTypedDict:
TypedDict = typed_dict
TypedDict_TypeAlias: typing.TypeAlias = typed_dict
HasTypedDict().TypedDict()
HasTypedDict().TypedDict_TypeAlias()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment