(runtime: Any)
| 1475 | |
| 1476 | |
| 1477 | def _is_django_cached_property(runtime: Any) -> bool: # pragma: no cover |
| 1478 | # This is a special case for |
| 1479 | # https://docs.djangoproject.com/en/5.2/ref/utils/#django.utils.functional.cached_property |
| 1480 | # This is needed in `django-stubs` project: |
| 1481 | # https://github.com/typeddjango/django-stubs |
| 1482 | if type(runtime).__name__ != "cached_property": |
| 1483 | return False |
| 1484 | try: |
| 1485 | return bool(runtime.func) |
| 1486 | except Exception: |
| 1487 | return False |
| 1488 | |
| 1489 | |
| 1490 | def _verify_readonly_property(stub: nodes.Decorator, runtime: Any) -> Iterator[str]: |
no test coverage detected
searching dependent graphs…