Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/python-attrs/attrs
/ MatchTester
Class
MatchTester
tests/test_validators.py:201–202 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
199
200
@attr.s
201
class
MatchTester:
202
val = attr.ib(validator=matches_re(
"a"
, re.IGNORECASE, re.match))
203
204
MatchTester(
"A1"
)
# test flags and using re.match
205
Callers
1
test_flags
Method · 0.85
Calls
1
matches_re
Function · 0.90
Tested by
1
test_flags
Method · 0.68