Skip to content

Instantly share code, notes, and snippets.

@mypy-play
Created May 2, 2025 00:37
Show Gist options
  • Save mypy-play/47197ec11f54e5c4c1f9734ebd0266f2 to your computer and use it in GitHub Desktop.
Save mypy-play/47197ec11f54e5c4c1f9734ebd0266f2 to your computer and use it in GitHub Desktop.
Shared via mypy Playground
Foo = dict[str, "Foo"]
def f(x: Foo):
reveal_type(x)
reveal_type(x["a"])
reveal_type(x["a"]["a"])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment