Created
February 7, 2023 08:34
-
-
Save sanxiyn/044c09712c42d37085fd62b267fc840b to your computer and use it in GitHub Desktop.
mypy abs test
This file contains 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
class Bar: | |
def bar(self): | |
pass | |
class Foo: | |
def __abs__(self) -> Bar: | |
return Bar() | |
foo = Foo() | |
afoo = abs(foo) | |
afoo.bar() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment