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

Method use_dataclass_names

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

Source from the content-addressed store, hash-verified

109 """
110
111 def use_dataclass_names(cls, attribs):
112 return [a.evolve(alias=a.name) for a in attribs]
113
114 @attr.s(auto_attribs=True, field_transformer=use_dataclass_names)
115 class NameCase:

Callers

nothing calls this directly

Calls 1

evolveMethod · 0.80

Tested by

no test coverage detected