Created
March 9, 2026 12:25
-
-
Save mypy-play/a1c568b38d94f027f1bef8a794e47cd6 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
| from unittest.mock import Mock | |
| class O: ... | |
| def take_o(o: O) -> None: ... | |
| take_o(Mock()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment