Get the last DefaultPath() of an annotated type.
(obj: Any)
| 115 | |
| 116 | |
| 117 | def get_default_path(obj: Any) -> ContextPath | None: |
| 118 | """Get the last DefaultPath() of an annotated type.""" |
| 119 | meta = get_meta(obj, DefaultPath) |
| 120 | return meta.from_context if meta else None |
| 121 | |
| 122 | |
| 123 | def get_default_address(obj: Any) -> str | None: |
no test coverage detected