MCPcopy Index your code
hub / github.com/RustPython/RustPython / assert_isinstance

Function assert_isinstance

extra_tests/snippets/testutils.py:71–74  ·  view source on GitHub ↗
(obj, klass)

Source from the content-addressed store, hash-verified

69
70
71def assert_isinstance(obj, klass):
72 _assert_print(
73 lambda: isinstance(obj, klass), ["isisntance(", _typed(obj), ",", klass, ")"]
74 )
75
76
77def assert_in(a, b):

Callers 1

stdlib_datetime.pyFile · 0.90

Calls 3

_assert_printFunction · 0.85
isinstanceFunction · 0.85
_typedFunction · 0.85

Tested by

no test coverage detected