MCPcopy
hub / github.com/python-attrs/attrs / hook

Method hook

tests/test_hooks.py:24–27  ·  view source on GitHub ↗
(cls, attribs)

Source from the content-addressed store, hash-verified

22 results = []
23
24 def hook(cls, attribs):
25 attr.resolve_types(cls, attribs=attribs)
26 results[:] = [(a.name, a.type) for a in attribs]
27 return attribs
28
29 @attr.s(field_transformer=hook)
30 class C:

Callers

nothing calls this directly

Calls 1

evolveMethod · 0.80

Tested by

no test coverage detected