Last active
October 13, 2019 21:40
-
-
Save johnsondnz/86076f41ab1e8e7cf417d7e021a37430 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env python3.7 | |
class Testing(object): | |
def __init__(self, a: str, b: str) -> None: | |
self.a = a | |
self.b = b | |
class MyTest(Testing): | |
def __init__(self, **kwargs) -> None: | |
super().__init__(kwargs.get('a'), kwargs.get('b')) | |
self.output() | |
def output(self) -> str: | |
print(f"a str: {self.a}, b str: {self.b}") | |
def main(): | |
var = MyTest(a=1, b=2) | |
if __name__ == "__main__": | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment