MCPcopy
hub / github.com/CadQuery/cadquery / instance_of

Function instance_of

cadquery/utils.py:182–187  ·  view source on GitHub ↗

Replacement for the instance_of method of typish, which now uses the isa method of the runtype package.

(obj: object, *args: object)

Source from the content-addressed store, hash-verified

180
181
182def instance_of(obj: object, *args: object) -> bool:
183 """
184 Replacement for the instance_of method of typish, which
185 now uses the isa method of the runtype package.
186 """
187 return isa(obj, cast(tuple[type[Any], ...], args))

Callers 8

test_styleFunction · 0.90
__init__Method · 0.85
constrainMethod · 0.85
solveMethod · 0.85
_split_showablesFunction · 0.85
_clearMethod · 0.85
__init__Method · 0.85
_validateMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_styleFunction · 0.72