Skip to content

Commit 6e9e9dd

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 20f6d70 commit 6e9e9dd

File tree

1 file changed

+121
-117
lines changed

1 file changed

+121
-117
lines changed

0 commit comments

Comments
 (0)