{ } Raw JSON

bundles / traitlets 5.16.2 / traitlets / traitlets / CRegExp

class

traitlets.traitlets:CRegExp

source: /traitlets/traitlets.py:4217

Signature

class CRegExp(default_value: t.Any = traitlets.Undefined, allow_none: bool = False, read_only: bool | None = None, help: str | None = None, config: t.Any = None, **kwargs: t.Any) → None

Members

Summary

A casting compiled regular expression trait.

Extended Summary

Accepts both strings and compiled regular expressions. The resulting attribute will be a compiled regular expression.

Aliases

  • traitlets.CRegExp