Skip to content

Instantly share code, notes, and snippets.

@islishude
Last active June 18, 2019 23:57
Show Gist options
  • Save islishude/60c07d77cd43a418689aea28e826e867 to your computer and use it in GitHub Desktop.
Save islishude/60c07d77cd43a418689aea28e826e867 to your computer and use it in GitHub Desktop.
from abc import ABC, ABCMeta, abstractmethod
class Reader(ABC):
@abstractmethod
def read(self): ...
class Writer(metaclass=ABCMeta):
@abstractmethod
def write(self):
pass
class ImpExample(Reader, Writer):
def __init__(self):
pass
def read(self):
pass
def write(self):
pass
i = ImpExample()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment