Skip to content

Commit db36aae

Browse files
committed
mypy(config[snapshot]): Update module pattern to include submodules
Update the mypy override rule to disable 'override' errors for all snapshot submodules (libtmux.snapshot.*) rather than just the main module. This is necessary for covariant return types used in snapshot classes.
1 parent dd47d5e commit db36aae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ module = "libtmux._internal.frozen_dataclass_sealable"
142142
disable_error_code = ["method-assign"]
143143

144144
[[tool.mypy.overrides]]
145-
module = "libtmux.snapshot"
145+
module = "libtmux.snapshot.*"
146146
disable_error_code = ["override"]
147147

148148
[[tool.mypy.overrides]]

0 commit comments

Comments
 (0)