Skip to content

Commit a38310f

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 c94a536 commit a38310f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pyproject.toml

+4
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,10 @@ files = [
132132
module = "libtmux._internal.frozen_dataclass"
133133
disable_error_code = ["method-assign"]
134134

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

0 commit comments

Comments
 (0)