(self: Any)
| 138 | raise AttributeError(f'{cls_name} has no attribute{plural} {extra}') |
| 139 | |
| 140 | def _asdict(self: Any) -> dict[str, Any]: |
| 141 | return { |
| 142 | name: getattr(self, name) |
| 143 | for name, attr in self.__class__.__dict__.items() |
| 144 | if isinstance(attr, Field) |
| 145 | } |
| 146 | |
| 147 | def __repr__(self: Any) -> str: |
| 148 | kwargs = ', '.join( |