Skip to content

fix: Reorder imports to follow stdlib-first convention - #2461

Open
andrewwhitecdw wants to merge 1 commit into
NVIDIA:mainfrom
andrewwhitecdw:codequality/abi-reorder-imports-to-follow-stdlib-first
Open

fix: Reorder imports to follow stdlib-first convention#2461
andrewwhitecdw wants to merge 1 commit into
NVIDIA:mainfrom
andrewwhitecdw:codequality/abi-reorder-imports-to-follow-stdlib-first

Conversation

@andrewwhitecdw

Copy link
Copy Markdown

This PR addresses the following issue in ci/check_c_abi/check_c_abi/abi.py: Reorder imports to follow stdlib-first convention.

Changes

  • ci/check_c_abi/check_c_abi/abi.py: Reorder imports to follow stdlib-first convention.

Details

--- a/ci/check_c_abi/check_c_abi/abi.py
+++ b/ci/check_c_abi/check_c_abi/abi.py
@@ -1,18 +1,17 @@
-import msgspec
-from itertools import zip_longest
-import pathlib
-from typing import Generator, Optional, Self
-import os
-
-
-import clang.cindex
-
-try:
-    from termcolor import colored
-except ImportError:
-
-    def colored(text, *args, **kwargs):
-        return text
-
-
-def _is_unnamed_struct(cursor: clang.cindex.Cursor) -> bool:
+from itertools import zip_longest
+import os
+import pathlib
+from typing import Generator, Optional, Self
+
+import clang.cindex
+import msgspec
+
+try:
+    from termcolor import colored
+except ImportError:
+
+    def colored(text, *args, **kwargs):
+        return text
+
+
+def _is_unnamed_struct(cursor: clang.cindex.Cursor) -> bool:

Tests

Let me know if you want tests added for this fix or not.

Signed-off-by: andrewwhitecdw <andrewwhitecdw@users.noreply.github.com>
@andrewwhitecdw
andrewwhitecdw requested a review from a team as a code owner August 17, 2026 20:25
@copy-pr-bot

copy-pr-bot Bot commented Aug 17, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

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