Created
February 28, 2019 15:31
-
-
Save tshatrov/0abe1798cc82afa4fdb96692e3256ab8 to your computer and use it in GitHub Desktop.
Why doesn't this work?
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 AA(): | |
def foo(self, x): | |
return x + 1 | |
class BB(AA): | |
def foo(self, x): | |
return [super().foo(z) for z in x] | |
bb = BB() | |
bb.foo([1, 2, 3]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment