Get the ref from the schema if it has one. This exists just for type checking to work correctly.
(s: core_schema.CoreSchema)
| 101 | |
| 102 | |
| 103 | def get_ref(s: core_schema.CoreSchema) -> None | str: |
| 104 | """Get the ref from the schema if it has one. |
| 105 | This exists just for type checking to work correctly. |
| 106 | """ |
| 107 | return s.get('ref', None) |
| 108 | |
| 109 | |
| 110 | def _clean_schema_for_pretty_print(obj: Any, strip_metadata: bool = True) -> Any: # pragma: no cover |
no test coverage detected