Skip to content

Commit 1a8c32a

Browse files
committed
pyproject(mypy) Add mypy override for frozen_dataclass method-assign
why: Fix type checking errors in the custom frozen_dataclass implementation what: - Added targeted mypy configuration override to disable method-assign errors - Only scoped to libtmux._internal.frozen_dataclass module - Preserves strict type checking across the rest of the codebase refs: Enables inheritance from mutable to immutable dataclasses
1 parent 5803841 commit 1a8c32a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,10 @@ files = [
128128
"tests",
129129
]
130130

131+
[[tool.mypy.overrides]]
132+
module = "libtmux._internal.frozen_dataclass"
133+
disable_error_code = ["method-assign"]
134+
131135
[tool.coverage.run]
132136
branch = true
133137
parallel = true

0 commit comments

Comments
 (0)