MCPcopy
hub / github.com/pydata/xarray / _contains_compiled_re

Function _contains_compiled_re

xarray/core/accessor_str.py:101–103  ·  view source on GitHub ↗

Determine if the object is a compiled re or array of compiled re.

(pat: Any)

Source from the content-addressed store, hash-verified

99
100
101def _contains_compiled_re(pat: Any) -> bool:
102 """Determine if the object is a compiled re or array of compiled re."""
103 return _contains_obj_type(pat=pat, checker=re.Pattern)
104
105
106def _contains_callable(pat: Any) -> bool:

Callers 2

containsMethod · 0.85
replaceMethod · 0.85

Calls 1

_contains_obj_typeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…