Skip to content

nixos/test-driver: fix type hints in extract-docstrings#501294

Merged
vcunat merged 1 commit intoNixOS:staging-nextfrom
applicative-systems:fix/extract-docstrings
Mar 19, 2026
Merged

nixos/test-driver: fix type hints in extract-docstrings#501294
vcunat merged 1 commit intoNixOS:staging-nextfrom
applicative-systems:fix/extract-docstrings

Conversation

@kmein
Copy link
Member

@kmein kmein commented Mar 19, 2026

This is a fixup for #479968.

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

Copilot AI review requested due to automatic review settings March 19, 2026 12:16
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the NixOS test-driver docstring extraction helper to use modern Python type-hint syntax, aligning it with the project’s existing Python (3.10+) typing style and resolving type-hint inconsistencies.

Changes:

  • Remove the unused typing.List import.
  • Replace List[...] annotations with built-in generics list[...] in function signatures.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@nixpkgs-ci nixpkgs-ci bot requested a review from tfc March 19, 2026 12:26
@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-nixos-tests This PR causes rebuilds for all NixOS tests and should normally target the staging branches. 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 6.topic: testing Tooling for automated testing of packages and modules labels Mar 19, 2026
@vcunat
Copy link
Member

vcunat commented Mar 19, 2026

Now it's failing on ruff format for extract-docstrings.py

@kmein kmein force-pushed the fix/extract-docstrings branch from 6c3bf76 to fba7fb2 Compare March 19, 2026 12:47
@vcunat vcunat enabled auto-merge March 19, 2026 12:53
@vcunat
Copy link
Member

vcunat commented Mar 19, 2026

Diff looks good and that build is fixed now.

auto-merge was automatically disabled March 19, 2026 12:55

Head branch was pushed to by a user without write access

@kmein kmein force-pushed the fix/extract-docstrings branch from fba7fb2 to f7e8f0c Compare March 19, 2026 12:55
@vcunat vcunat enabled auto-merge March 19, 2026 12:55
@kmein
Copy link
Member Author

kmein commented Mar 19, 2026

@vcunat Can you reenable automerge? Had to throw out an accidentally committed file.

@vcunat vcunat added this pull request to the merge queue Mar 19, 2026
Merged via the queue into NixOS:staging-next with commit fd3a085 Mar 19, 2026
27 of 30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 6.topic: testing Tooling for automated testing of packages and modules 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-nixos-tests This PR causes rebuilds for all NixOS tests and should normally target the staging branches.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants