Skip to content

docs(cuda.core): don't document APIs accept dict for options - #2619

Merged
juenglin merged 2 commits into
NVIDIA:mainfrom
juenglin:docs-cleanup
Aug 14, 2026
Merged

docs(cuda.core): don't document APIs accept dict for options#2619
juenglin merged 2 commits into
NVIDIA:mainfrom
juenglin:docs-cleanup

Conversation

@juenglin

@juenglin juenglin commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Removes | dict[str, object] from the options parameter annotations of DeviceMemoryResource, ManagedMemoryResource, and PinnedMemoryResource.

Because Cython enforces def-function type annotations at the call boundary, this is a behavioral change: passing a plain dict to any of these constructors now raises TypeError at runtime instead of being silently accepted.

Tests are updated to use Options dataclasses instead of dicts.

Addresses #2248.

@copy-pr-bot

copy-pr-bot Bot commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@github-actions github-actions Bot added the cuda.core Everything related to the cuda.core module label Aug 13, 2026
@juenglin

Copy link
Copy Markdown
Contributor Author

/ok to test 0a77875

@juenglin
juenglin requested a review from leofang August 13, 2026 22:36
@juenglin
juenglin marked this pull request as ready for review August 13, 2026 22:36
@juenglin juenglin self-assigned this Aug 13, 2026
@juenglin juenglin added the P1 Medium priority - Should do label Aug 13, 2026
@juenglin juenglin added this to the cuda.core 1.2.0 milestone Aug 13, 2026
@github-actions

Copy link
Copy Markdown

@juenglin
juenglin merged commit 3f87dc3 into NVIDIA:main Aug 14, 2026
112 checks passed
@juenglin
juenglin deleted the docs-cleanup branch August 14, 2026 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cuda.core Everything related to the cuda.core module P1 Medium priority - Should do

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants