()
| 109 | |
| 110 | |
| 111 | def test_safe_isclass() -> None: |
| 112 | assert safe_isclass(type) is True |
| 113 | |
| 114 | class CrappyClass(Exception): |
| 115 | # Type ignored because it's bypassed intentionally. |
| 116 | @property # type: ignore |
| 117 | def __class__(self): |
| 118 | assert False, "Should be ignored" |
| 119 | |
| 120 | assert safe_isclass(CrappyClass()) is False |
| 121 | |
| 122 | |
| 123 | def test_cached_property() -> None: |
nothing calls this directly
no test coverage detected