aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/dependencies
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2021-09-14 23:11:49 -0400
committerEli Schwartz <eschwartz@archlinux.org>2021-10-04 16:29:31 -0400
commitf2eb1534ddcacd990ab6807376a92e2400681536 (patch)
tree35b2d43a86bedb004106b4f63736fba15e513d94 /mesonbuild/dependencies
parent520996fff18a4d1545090f46549f9c15cec3bffa (diff)
downloadmeson-f2eb1534ddcacd990ab6807376a92e2400681536.zip
meson-f2eb1534ddcacd990ab6807376a92e2400681536.tar.gz
meson-f2eb1534ddcacd990ab6807376a92e2400681536.tar.bz2
work around flake8 F811 for T.overload redefined functions
Since typing != T as far as flake8 is aware, give the linter an extra hint.
Diffstat (limited to 'mesonbuild/dependencies')
-rw-r--r--mesonbuild/dependencies/cuda.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/dependencies/cuda.py b/mesonbuild/dependencies/cuda.py
index 6bc0f05..bdd2f50 100644
--- a/mesonbuild/dependencies/cuda.py
+++ b/mesonbuild/dependencies/cuda.py
@@ -259,9 +259,9 @@ class CudaDependency(SystemDependency):
def _report_dependency_error(self, msg: str) -> None: ...
@T.overload
- def _report_dependency_error(self, msg: str, ret_val: TV_ResultTuple) -> TV_ResultTuple: ...
+ def _report_dependency_error(self, msg: str, ret_val: TV_ResultTuple) -> TV_ResultTuple: ... # noqa: F811
- def _report_dependency_error(self, msg: str, ret_val: T.Optional[TV_ResultTuple] = None) -> T.Optional[TV_ResultTuple]:
+ def _report_dependency_error(self, msg: str, ret_val: T.Optional[TV_ResultTuple] = None) -> T.Optional[TV_ResultTuple]: # noqa: F811
if self.required:
raise DependencyException(msg)