This is a development version (9.18.0.dev) and may be unstable.Go to latest (9.17.0)
{ } Raw JSON

bundles / IPython 9.18.0.dev / IPython / utils / wildcard / is_type

function

IPython.utils.wildcard:is_type

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

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