Skip to content

Commit

Permalink
Try define signature #4
Browse files Browse the repository at this point in the history
  • Loading branch information
anvlobachev committed Mar 13, 2024
1 parent acd59ac commit e14c343
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/test_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

# import os
# os.environ["NUMBACLS_BYPASS"] = "0"
# from numba.extending import overload, register_jitable
# from numba import njit


@numbaclass(cache=True)
Expand All @@ -24,6 +26,10 @@ def __init__(
self.prop2 = np.zeros(n, dtype=np.float64)
print("Init done")

# void(int64,)
# (pyobject, int64,)
# (float64[:], int64,)
#
def incr_prop1(
self,
val: int,
Expand All @@ -36,6 +42,8 @@ def incr_prop1(
"""
self.prop1[:] += val

# New line
#
def check_me(self):
print(self.prop1)

Expand Down

0 comments on commit e14c343

Please sign in to comment.