Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/python-attrs/attrs
/ C
Class
C
tests/test_make.py:1694–1698 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1692
1693
@attr.define
1694
class
C:
1695
x: int = attr.field(
1696
converter=attr.Converter(converter_with_self, takes_self=True)
1697
)
1698
y = 42
1699
1700
assert 84 == C(2).x
1701
Callers
15
test_these_leave_body
Method · 0.70
test_these_ordered
Method · 0.70
test_pre_init
Method · 0.70
test_pre_init_args
Method · 0.70
test_pre_init_kwargs
Method · 0.70
test_pre_init_kwargs_only
Method · 0.70
test_post_init
Method · 0.70
test_pre_post_init_order
Method · 0.70
test_adds_keyword_only_arguments
Method · 0.70
test_ignores_kw_only_when_init_is_false
Method · 0.70
test_keyword_only_attributes_presence
Method · 0.70
test_keyword_only_attributes_unexpected
Method · 0.70
Calls
no outgoing calls
Tested by
15
test_these_leave_body
Method · 0.56
test_these_ordered
Method · 0.56
test_pre_init
Method · 0.56
test_pre_init_args
Method · 0.56
test_pre_init_kwargs
Method · 0.56
test_pre_init_kwargs_only
Method · 0.56
test_post_init
Method · 0.56
test_pre_post_init_order
Method · 0.56
test_adds_keyword_only_arguments
Method · 0.56
test_ignores_kw_only_when_init_is_false
Method · 0.56
test_keyword_only_attributes_presence
Method · 0.56
test_keyword_only_attributes_unexpected
Method · 0.56