Skip to content

[Backport staging-24.11] nixos/lib/test-driver: fix linting after compatibility clean‐up#359064

Merged
emilazy merged 1 commit intostaging-24.11from
backport-359060-to-staging-24.11
Nov 25, 2024
Merged

[Backport staging-24.11] nixos/lib/test-driver: fix linting after compatibility clean‐up#359064
emilazy merged 1 commit intostaging-24.11from
backport-359060-to-staging-24.11

Conversation

@github-actions
Copy link
Contributor

Bot-based backport to staging-24.11, triggered by a label in #359060.

  • Before merging, ensure that this backport is acceptable for the release.
    • Even as a non-commiter, if you find that it is not acceptable, leave a comment.

The previous commit removed the handling of `dict` arguments, but
didn’t adjust the type, leading to the following type-checking error:

    test_driver/driver.py:216: error: Argument 1 to "NixStartScript" has incompatible type "str | dict[Any, Any]"; expected "str"  [arg-type]

It also left an unused import that Ruff is unhappy about:

    build/lib/test_driver/driver.py:11:22: F401 [*] `colorama.Fore` imported but unused
    …
    build/lib/test_driver/driver.py:11:28: F401 [*] `colorama.Style` imported but unused

Fixes: 71306e6
(cherry picked from commit d490680)
@emilazy emilazy merged commit 2d9eedd into staging-24.11 Nov 25, 2024
@emilazy emilazy deleted the backport-359060-to-staging-24.11 branch November 25, 2024 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant