A patch named a field that is not one of the row's non-key fields (a key field, or a field the row does not have).
Attributes#
| Attribute | Type | Description |
|---|---|---|
tag | = tag | |
fields | = tuple(fields) |
Functions#
__init__#
__init__(tag, fields, patchable) -> None| Parameter | Type | Description |
|---|---|---|
tag | str | |
fields | Sequence[str] | |
patchable | frozenset[str] |
def __init__(self, tag: str, fields: Sequence[str], patchable: frozenset[str]) -> None:
super().__init__(
f"{tag!r} patches only its non-key fields {sorted(patchable)!r}, got {list(fields)!r}"
)
self.tag = tag
self.fields = tuple(fields)