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

Function client_code

src/Adapter/Conceptual/class/main.py:55–62  ·  view source on GitHub ↗

EN: The client code supports all classes that follow the Target interface. RU: Клиентский код поддерживает все классы, использующие интерфейс Target.

(target: "Target")

Source from the content-addressed store, hash-verified

53
54
55def client_code(target: "Target") -> None:
56 """
57 EN: The client code supports all classes that follow the Target interface.
58
59 RU: Клиентский код поддерживает все классы, использующие интерфейс Target.
60 """
61
62 print(target.request(), end="")
63
64
65if __name__ == "__main__":

Callers 1

main.pyFile · 0.70

Calls 1

requestMethod · 0.45

Tested by

no test coverage detected