Normalize value to a UUID.
(id_: str | UUID)
| 10 | |
| 11 | |
| 12 | def normalize_uuid(id_: str | UUID) -> UUID: |
| 13 | """Normalize value to a UUID.""" |
| 14 | return UUID(id_) if isinstance(id_, str) else id_ |
| 15 | |
| 16 | |
| 17 | class HostingProjectModel(BaseModel): |
no outgoing calls
no test coverage detected
searching dependent graphs…