Skip to content

Commit d886a34

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 7db6426 commit d886a34

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
@@ -133,6 +133,10 @@ module = "tests.examples.*"
133133
disallow_untyped_defs = false
134134
disallow_incomplete_defs = false
135135

136+
[[tool.mypy.overrides]]
137+
module = "libtmux._internal.frozen_dataclass"
138+
disable_error_code = ["method-assign"]
139+
136140
[tool.coverage.run]
137141
branch = true
138142
parallel = true

0 commit comments

Comments
 (0)