Skip to content

Instantly share code, notes, and snippets.

@johnsondnz
Last active October 13, 2019 21:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnsondnz/86076f41ab1e8e7cf417d7e021a37430 to your computer and use it in GitHub Desktop.
Save johnsondnz/86076f41ab1e8e7cf417d7e021a37430 to your computer and use it in GitHub Desktop.
#!/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