Last active
June 20, 2018 16:18
-
-
Save Stevoisiak/26518972244b705276266b169f023efa to your computer and use it in GitHub Desktop.
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
# Base Classes | |
class BaseAdapter(object): | |
def __init__(self): | |
super(BaseAdapter, self).__init__() | |
class BaseAdapter2(object): | |
pass | |
class Second: | |
def __init__(self): | |
print("second") | |
super().__init__() | |
# Test classes | |
class Other1(BaseAdapter, Second): | |
def __init__(self): | |
print("other1 init") | |
super().__init__() | |
class Other2(BaseAdapter2, Second): | |
def __init__(self): | |
print("other2 init") | |
super().__init__() | |
Other1() | |
Other2() |
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
other1 init | |
second | |
other2 init | |
second |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment