Commit a9588b7
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 4747aca commit a9588b7
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
144 | 148 | | |
145 | 149 | | |
146 | 150 | | |
| |||
0 commit comments