Skip to content

Commit 3176271

Browse files
rparolinclaude
andcommitted
chore(cuda.core): use __all__ in utils instead of per-import noqa
Replace seven `# noqa: F401` comments with a single `__all__` block listing the public re-exports. Cleaner intent signal — these are deliberate facade exports, not accidental imports — and matches the existing __all__ convention used in cuda.core.system, _legacy.py, and typing.py. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent d6f60f2 commit 3176271

1 file changed

Lines changed: 13 additions & 11 deletions

File tree

cuda_core/cuda/core/utils.py

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,16 @@
22
#
33
# SPDX-License-Identifier: Apache-2.0
44

5-
from cuda.core._memory._managed_location import Location # noqa: F401
6-
from cuda.core._memory._managed_memory_ops import (
7-
advise, # noqa: F401
8-
discard, # noqa: F401
9-
discard_prefetch, # noqa: F401
10-
prefetch, # noqa: F401
11-
)
12-
from cuda.core._memoryview import (
13-
StridedMemoryView, # noqa: F401
14-
args_viewable_as_strided_memory, # noqa: F401
15-
)
5+
from cuda.core._memory._managed_location import Location
6+
from cuda.core._memory._managed_memory_ops import advise, discard, discard_prefetch, prefetch
7+
from cuda.core._memoryview import StridedMemoryView, args_viewable_as_strided_memory
8+
9+
__all__ = [
10+
"Location",
11+
"StridedMemoryView",
12+
"advise",
13+
"args_viewable_as_strided_memory",
14+
"discard",
15+
"discard_prefetch",
16+
"prefetch",
17+
]

0 commit comments

Comments
 (0)