You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Fix conftest.py's empty_attribute_default fixture teardown: the
DeprecationWarning-ignore filter wrapped the restore of all 8 scalar
config attrs instead of just the one deprecated assignment, which
would have silently swallowed any future deprecation warning added
to the other 7 -- a silent-failure hunter finding. Scoped to match
the already-narrow setup block.
- Add a type check to _EmptyAttributeDefaultAttribute.__set__: a
cheap, immediate TypeError for non-str/non-None values instead of
deferring the whole invariant to 2.0 (type-design-analyzer finding).
- Document why __get__(obj=None) returns '' rather than `self` (unlike
its _SetManagerAttribute sibling): it's load-bearing for
Constants.__repr__'s default-value comparison, not just mypy
inference (type-design-analyzer finding).
- Fix a stale "~8 public str-typed properties" comment (actually 12)
in two test files (comment-analyzer finding).
- Add tests: Constants.copy() preserves a customized
empty_attribute_default without warning; add_with_encoding()'s str
path emits exactly one warning, not two; the legacy-pickle warning
fires once per __setstate__ call even with two stale keys, not once
per key (test-analyzer findings).
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
0 commit comments