Skip to content

Commit e71a50f

Browse files
committed
refactor(snapshot): Add explicit type ignores for seal methods
why: The snapshot classes need to implement seal methods to be compatible with the SealableProtocol, but these methods are added dynamically by the frozen_dataclass_sealable decorator at runtime. what: - Add proper type ignores for all seal methods with attr-defined to silence mypy errors about methods not defined in the superclass - Improve module docstring to explain type checking nuances with property overrides and seal methods - Fix import order and general code style - Ensure consistent docstrings for properties - Add explicit body to seal methods so they're properly overriding the decorator-provided implementation refs: This works in conjunction with the mypy override in pyproject.toml
1 parent c127508 commit e71a50f

File tree

1 file changed

+121
-117
lines changed

1 file changed

+121
-117
lines changed

0 commit comments

Comments
 (0)