-
Notifications
You must be signed in to change notification settings - Fork 228
chore: Replace isinstance(obj, T) with type(obj) is T comparisons #1292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 13 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
874b7f4
chore: Replace isinstance(obj, T) with type(obj) is T comparisons
bharatr21 0db38d0
Merge branch 'main' into isinstance-type
bharatr21 0fd52b4
Merge branch 'main' into isinstance-type
bharatr21 eb9ca80
Add isinstance fallback to maintain backward compat for subclasses
bharatr21 0b9d8ad
Merge branch 'main' into isinstance-type
bharatr21 5e09e0c
Merge branch 'main' into isinstance-type
mdboom 85bc86c
Fix test failures (attempt 1/n)
bharatr21 5c72f9f
Merge branch 'main' into isinstance-type
bharatr21 6ea8616
Merge branch 'main' into isinstance-type
leofang ed81c11
Fix test failures (attempt 2/n)
bharatr21 f07d82c
Merge branch 'main' into isinstance-type
bharatr21 3f9b5f1
Apply suggestions from code review by @mdboom and @leofang
bharatr21 0fc1ed8
Fix test_graph.py to use bool correctly in cudaGraphSetConditional call.
mdboom 3025e04
More explicit typing of CUgraphConditionalHandle
mdboom 48a0856
Improve conditional kernel tests by testing both bools and ints
mdboom d9a7c14
fix
leofang c440428
Merge branch 'main' into isinstance-type
bharatr21 e9d7713
Move breaking change to bugfix
mdboom File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| .. SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| .. SPDX-License-Identifier: Apache-2.0 | ||
| .. currentmodule:: cuda.core.experimental | ||
|
|
||
| ``cuda.core`` 0.5.x Release Notes | ||
| ================================= | ||
|
|
||
|
|
||
| Highlights | ||
| ---------- | ||
|
|
||
| None. | ||
|
|
||
|
|
||
| Breaking Changes | ||
| ---------------- | ||
|
|
||
| - Python ``bool`` objects are now converted to C++ ``bool`` type when passed as kernel | ||
| arguments. Previously, they were converted to ``int``. This brings them inline | ||
| with ``ctypes.c_bool`` and ``numpy.bool_``. | ||
leofang marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
|
|
||
| New features | ||
| ------------ | ||
|
|
||
| None. | ||
|
|
||
|
|
||
| New examples | ||
| ------------ | ||
|
|
||
| None. | ||
|
|
||
|
|
||
| Fixes and enhancements | ||
| ---------------------- | ||
|
|
||
| None. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.