Commit 73dea59
committed
mypy(config[snapshot]): Add override for property/field conflicts
why:
- Snapshot classes have properties that conflict with dataclass field names during type checking
- These property/field collisions cause mypy to generate false positive error messages
- We need to silence these specific errors without compromising overall type safety
what:
- Added [[tool.mypy.overrides]] section in pyproject.toml for libtmux.snapshot module
- Set disable_error_code = ["override"] to silence property override errors
- Placed the override in a module-specific section to limit scope and prevent disabling
this error check for other modules
refs: Complements the snapshot class refactoring to ensure clean mypy checks1 parent 6004a71 commit 73dea59
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
139 | 143 | | |
140 | 144 | | |
141 | 145 | | |
| |||
0 commit comments