Skip to content

Commit 722577d

Browse files
committed
🐓 work around an irreproducible (?) false positive misc mypy error
1 parent 75c6bd7 commit 722577d

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

ā€Žscipy-stubs/stats/_multicomp.pyiā€Ž

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
# Locally, mypy reports:
2+
#
3+
# > error: Cannot use a covariant type variable as a parameter [misc]
4+
#
5+
# for `_mean_control: _StatT_co`. But for some reason, this isn't reported in any of
6+
# the CI jobs. We therefore cannot use `# type:ignore[misc]` here, because that would
7+
# then be reported as an unused ignore in those CI jobs, and are forced to disable
8+
# [misc] for the entire module.
9+
#
10+
# mypy: disable-error-code=misc
11+
112
from dataclasses import dataclass
213
from typing import Generic, overload
314
from typing_extensions import TypeVar

0 commit comments

Comments
Ā (0)