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

Function _generate_unique_filename

src/attr/_make.py:1601–1608  ·  view source on GitHub ↗

Create a "filename" suitable for a function being generated.

(cls: type, func_name: str)

Source from the content-addressed store, hash-verified

1599
1600
1601def _generate_unique_filename(cls: type, func_name: str) -> str:
1602 """
1603 Create a "filename" suitable for a function being generated.
1604 """
1605 return (
1606 f"<attrs generated {func_name} {cls.__module__}."
1607 f"{getattr(cls, '__qualname__', cls.__name__)}>"
1608 )
1609
1610
1611def _make_hash_script(

Callers 6

_eval_snippetsMethod · 0.85
_make_hash_scriptFunction · 0.85
_add_hashFunction · 0.85
_add_eqFunction · 0.85
_add_reprFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected