MCPcopy Create free account
hub / github.com/apache/arrow / __instancecheck__

Method __instancecheck__

python/pyarrow/util.py:115–121  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

113 """
114 class _DeprecatedMeta(type):
115 def __instancecheck__(self, other):
116 warnings.warn(
117 _DEPR_MSG.format(old_name, next_version, new_class.__name__),
118 FutureWarning,
119 stacklevel=2
120 )
121 return isinstance(other, new_class)
122
123 return _DeprecatedMeta(old_name, (new_class,), {})
124

Callers

nothing calls this directly

Calls 1

formatMethod · 0.45

Tested by

no test coverage detected