class documentation

Represents a single Git trailer.

Parameters
keyThe trailer key/token (e.g., "Signed-off-by")
valueThe trailer value
separatorThe separator character used (default ':')
Method __eq__ Compare two Trailer instances for equality.
Method __init__ Initialize a Trailer instance.
Method __repr__ Return a string representation suitable for debugging.
Method __str__ Return the trailer formatted as it would appear in a commit message.
Instance Variable key Undocumented
Instance Variable separator Undocumented
Instance Variable value Undocumented
def __eq__(self, other: object) -> bool:

Compare two Trailer instances for equality.

Parameters
other:objectThe object to compare with
Returns
boolTrue if trailers have the same key, value, and separator
def __init__(self, key: str, value: str, separator: str = ':'):

Initialize a Trailer instance.

Parameters
key:strThe trailer key/token
value:strThe trailer value
separator:strThe separator character (default ':')
def __repr__(self) -> str:

Return a string representation suitable for debugging.

Returns
strA string showing the trailer's key, value, and separator
def __str__(self) -> str:

Return the trailer formatted as it would appear in a commit message.

Returns
The trailer in the format "keyvalue"
key =

Undocumented

separator =

Undocumented

value =

Undocumented