Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/python-attrs/attrs
/ C
Class
C
tests/test_converters.py:329–333 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
327
328
@attr.s
329
class
C:
330
x = attrib(
331
converter=optional(pipe(str, Converter(to_bool), bool)),
332
default=None,
333
)
334
335
c1 = C()
336
Callers
nothing calls this directly
Calls
4
attrib
Function · 0.90
optional
Function · 0.90
Converter
Class · 0.90
pipe
Function · 0.50
Tested by
no test coverage detected