Created
January 24, 2026 03:27
-
-
Save mypy-play/74cdf8fb4a608a6101a08849998e6ddc to your computer and use it in GitHub Desktop.
Shared via mypy Playground
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def f(x: type[list[int]]): | |
| reveal_type(x) | |
| g(x) | |
| def g(x: type[list[str]]): | |
| reveal_type(x) | |
| f(x) | |
| f(list) | |
| g(list) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment