mirror of
https://github.com/rjNemo/design-patterns
synced 2026-06-06 10:36:39 +00:00
* doc: add proxy README documentation * doc: edit general README files * add proxy code example Co-authored-by: Ruidy <r.nemausat@empfohlen.de>
13 lines
364 B
Python
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
|