(
self, msg: str, cause: Optional[Exception] = None
)
| 514 | return cast(T, value) |
| 515 | |
| 516 | def _invalid_metadata( |
| 517 | self, msg: str, cause: Optional[Exception] = None |
| 518 | ) -> InvalidMetadata: |
| 519 | exc = InvalidMetadata( |
| 520 | self.raw_name, msg.format_map({"field": repr(self.raw_name)}) |
| 521 | ) |
| 522 | exc.__cause__ = cause |
| 523 | return exc |
| 524 | |
| 525 | def _process_metadata_version(self, value: str) -> _MetadataVersion: |
| 526 | # Implicitly makes Metadata-Version required. |
no test coverage detected