Port¶
_port
¶
Abstract base class for the port hierarchy.
Defines the root Port class, which all ports ultimately inherit from.
Application code should subclass InboundPort or OutboundPort
instead of Port directly, as Port itself enforces no
dependency-direction rules.
Port
¶
Bases: ABC
Root abstract base class for all port contracts.
Responsibilities:
- Serve as the root abstract base for all port contracts.
- Define the contract that InboundPort and OutboundPort
concretize.
Non-Responsibilities
- Does NOT enforce dependency-direction rules — that is delegated
toInboundPortandOutboundPortvia__init_subclass__.