Skip to content

Commit 2d12f0e

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 0a6b46d commit 2d12f0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ module = "libtmux._internal.frozen_dataclass_sealable"
137137
disable_error_code = ["method-assign"]
138138

139139
[[tool.mypy.overrides]]
140-
module = "libtmux.snapshot"
140+
module = "libtmux.snapshot.*"
141141
disable_error_code = ["override"]
142142

143143
[[tool.mypy.overrides]]

0 commit comments

Comments
 (0)