Skip to content

Commit 81bd81d

Browse files
committed
pyproject(mypy) Add mypy override for frozen_dataclass_sealable 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 170266a commit 81bd81d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: pyproject.toml

+4
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,10 @@ disallow_incomplete_defs = false
137137
module = "libtmux._internal.frozen_dataclass"
138138
disable_error_code = ["method-assign"]
139139

140+
[[tool.mypy.overrides]]
141+
module = "libtmux._internal.frozen_dataclass_sealable"
142+
disable_error_code = ["method-assign"]
143+
140144
[tool.coverage.run]
141145
branch = true
142146
parallel = true

0 commit comments

Comments
 (0)