Adapter API Documentation
- class Target(*args, **kwargs)[source]
Bases:
ProtocolDefines the domain-specific interface used by the client.
- class Adaptee[source]
Bases:
objectDefines the existing interface with specific functionality that needs adaptation.
- class Adapter(adaptee)[source]
Bases:
TargetAdapts the Adaptee to the Target interface.
- Parameters:
adaptee (Adaptee)
- __init__(adaptee)[source]
Initializes the Adapter with an Adaptee instance.
- Parameters:
adaptee (
Adaptee) – The Adaptee instance to be adapted. Must not be None.- Raises:
ValueError – If the provided Adaptee instance is None.