MCPcopy Create free account
hub / github.com/ipython/traitlets / TestCRegExp

Class TestCRegExp

tests/test_traitlets.py:1868–1876  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1866
1867
1868class TestCRegExp(TraitTestBase):
1869 def coerce(self, value):
1870 return re.compile(value)
1871
1872 obj = CRegExpTrait()
1873
1874 _default_value = re.compile(r"")
1875 _good_values = [r"\d+", re.compile(r"\d+")]
1876 _bad_values = ["(", None, ()]
1877
1878
1879class DictTrait(HasTraits):

Callers

nothing calls this directly

Calls 1

CRegExpTraitClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…