You are viewing an older version (9.5.0). Go to latest (9.13.0)
{ } Raw JSON

bundles / IPython 9.5.0 / IPython / utils / wildcard / is_type

function

IPython.utils.wildcard:is_type

source: /IPython/utils/wildcard.py :38

Signature

def   is_type ( obj typestr_or_type )

Summary

is_type(obj, typestr_or_type) verifies if obj is of a certain type. It can take strings or actual python types for the second argument, i.e. 'tuple'<->TupleType. 'all' matches all types.

Extended Summary

TODO: Should be extended for choosing more than one type.

Aliases

  • IPython.utils.wildcard.is_type