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

Function _has_frozen_base_class

src/attr/_make.py:1593–1598  ·  view source on GitHub ↗

Check whether *cls* has a frozen ancestor by looking at its __setattr__.

(cls)

Source from the content-addressed store, hash-verified

1591
1592
1593def _has_frozen_base_class(cls):
1594 """
1595 Check whether *cls* has a frozen ancestor by looking at its
1596 __setattr__.
1597 """
1598 return cls.__setattr__ is _frozen_setattrs
1599
1600
1601def _generate_unique_filename(cls: type, func_name: str) -> str:

Callers 1

wrapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected