Skip to content

Instantly share code, notes, and snippets.

@att288
Last active December 22, 2020 11:22
Show Gist options
  • Save att288/9174a14dc9caabd93a41709f02500489 to your computer and use it in GitHub Desktop.
Save att288/9174a14dc9caabd93a41709f02500489 to your computer and use it in GitHub Desktop.
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