MCPcopy Create free account
hub / github.com/RefactoringGuru/design-patterns-python / Adaptee

Class Adaptee

src/Adapter/Conceptual/object/main.py:26–39  ·  view source on GitHub ↗

EN: The Adaptee contains some useful behavior, but its interface is incompatible with the existing client code. The Adaptee needs some adaptation before the client code can use it. RU: Адаптируемый класс содержит некоторое полезное поведение, но его интерфейс несовместим с суще

Source from the content-addressed store, hash-verified

24
25
26class Adaptee:
27 """
28 EN: The Adaptee contains some useful behavior, but its interface is
29 incompatible with the existing client code. The Adaptee needs some
30 adaptation before the client code can use it.
31
32 RU: Адаптируемый класс содержит некоторое полезное поведение, но его
33 интерфейс несовместим с существующим клиентским кодом. Адаптируемый класс
34 нуждается в некоторой доработке, прежде чем клиентский код сможет его
35 использовать.
36 """
37
38 def specific_request(self) -> str:
39 return ".eetpadA eht fo roivaheb laicepS"
40
41
42class Adapter(Target):

Callers 1

main.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected