Skip to content

Commit 47aaec8

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 d6421c8 commit 47aaec8

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
@@ -148,6 +148,10 @@ ignore_errors = true
148148
module = "tests.examples._internal.frozen_dataclass_sealable.test_basic"
149149
ignore_errors = true
150150

151+
[[tool.mypy.overrides]]
152+
module = "libtmux._internal.frozen_dataclass"
153+
disable_error_code = ["method-assign"]
154+
151155
[tool.coverage.run]
152156
branch = true
153157
parallel = true

0 commit comments

Comments
 (0)