Last active
December 22, 2020 11:22
-
-
Save att288/9174a14dc9caabd93a41709f02500489 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
class Example: | |
@classmethod | |
def foo(cls, message: str) -> None: | |
print(f"Message sent from foo: {message}") | |
@staticmethod | |
def bar(message: str) -> None: | |
print(f"Message sent from bar: {message}") | |
if __name__ == "__main__": | |
Example.foo("FOO") | |
Example.bar("BAR") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment