design-patterns/structural/proxy/subject.py
Ruidy 18dc62563c
Proxy (#13)
* doc: add proxy README documentation

* doc: edit general README files

* add proxy code example

Co-authored-by: Ruidy <r.nemausat@empfohlen.de>
2020-09-29 21:08:07 +02:00

13 lines
364 B
Python

from abc import abstractmethod, ABC
class Subject(ABC):
"""
The Subject interface declares common operations for both RealSubject and
the Proxy. As long as the client works with RealSubject using this
interface, you'll be able to pass it a proxy instead of a real subject.
"""
@abstractmethod
def request(self) -> None:
pass