Last active
June 18, 2019 23:57
-
-
Save islishude/60c07d77cd43a418689aea28e826e867 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
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