Fix typing and linting errors after tool upgrade
Marco Ricci

Marco Ricci commited on 2026-08-29 18:45:38
Zeige 4 geänderte Dateien mit 4 Einfügungen und 6 Löschungen.

... ...
@@ -538,7 +538,7 @@ class CommandWithHelpGroups(click.Command):
538 538
         if self.short_help:  # pragma: no cover [external-api]
539 539
             text = inspect.cleandoc(self._text(self.short_help))
540 540
         elif self.help:
541
-            text = click.utils.make_default_short_help(
541
+            text = click.utils.make_default_short_help(  # type: ignore[all]
542 542
                 self._text(self.help), limit
543 543
             )
544 544
         else:  # pragma: no cover [external-api]
... ...
@@ -247,8 +247,8 @@ class CliRunner:
247 247
         # checker, we disable static type checking for this call in
248 248
         # particular; our test suite will have to uncover any breakage
249 249
         # dynamically instead.
250
-        self.click_testing_clirunner = click.testing.CliRunner(  # type: ignore[misc]
251
-            **mix_stderr_args
250
+        self.click_testing_clirunner = click.testing.CliRunner(
251
+            **mix_stderr_args  # type: ignore[misc]
252 252
         )
253 253
 
254 254
     def invoke(
... ...
@@ -349,7 +349,7 @@ def _get_id(
349 349
 ) -> str | None:  # pragma: no cover[external]
350 350
     if (
351 351
         isinstance(argvalue, pytest_mark.ParameterSet)
352
-        and argvalue.id is not None
352
+        and isinstance(argvalue.id, str)
353 353
     ):
354 354
         return argvalue.id
355 355
     if callable(ids):
... ...
@@ -31,8 +31,6 @@ from tests.machinery import pytest as pytest_machinery
31 31
 if TYPE_CHECKING:
32 32
     from collections.abc import Generator
33 33
 
34
-    from typing_extensions import Literal
35
-
36 34
 
37 35
 class VersionOutputData(NamedTuple):
38 36
     derivation_schemes: dict[str, bool]
39 37