MCPcopy
hub / github.com/django/django / _issubclass

Function _issubclass

django/contrib/admin/checks.py:19–27  ·  view source on GitHub ↗

issubclass() variant that doesn't raise an exception if cls isn't a class.

(cls, classinfo)

Source from the content-addressed store, hash-verified

17
18
19def _issubclass(cls, classinfo):
20 """
21 issubclass() variant that doesn't raise an exception if cls isn't a
22 class.
23 """
24 try:
25 return issubclass(cls, classinfo)
26 except TypeError:
27 return False
28
29
30def _contains_subclass(class_path, candidate_paths):

Callers 5

_contains_subclassFunction · 0.85
_check_formMethod · 0.85
_check_inlines_itemMethod · 0.85
_check_formsetMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected