Get the deprecation metadata from an annotated type.
(obj: Any)
| 132 | |
| 133 | |
| 134 | def get_deprecated(obj: Any) -> str | None: |
| 135 | """Get the deprecation metadata from an annotated type.""" |
| 136 | if meta := get_meta(obj, Deprecated): |
| 137 | return meta.reason |
| 138 | return None |
| 139 | |
| 140 | |
| 141 | def is_union(th: TypeHint) -> bool: |
no test coverage detected