Skip to content

Commit c96f6de

Browse files
committed
add notes to objects that have different backends
1 parent 63f7feb commit c96f6de

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

cuda_core/cuda/core/experimental/_linker.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,12 @@ def _input_type_from_code_type(self, code_type: str):
493493

494494
@property
495495
def handle(self) -> LinkerHandleT:
496-
"""Return the underlying handle object."""
496+
"""Return the underlying handle object.
497+
498+
.. note::
499+
500+
The type of the returned object depends on the backend.
501+
"""
497502
return self._mnff.handle
498503

499504
@property

cuda_core/cuda/core/experimental/_program.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,5 +507,10 @@ def backend(self) -> str:
507507

508508
@property
509509
def handle(self) -> ProgramHandleT:
510-
"""Return the underlying handle object."""
510+
"""Return the underlying handle object.
511+
512+
.. note::
513+
514+
The type of the returned object depends on the backend.
515+
"""
511516
return self._mnff.handle

0 commit comments

Comments
 (0)