Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions docs/source/user/jitclass.rst
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ First, using explicit Numba types and explicit construction.

.. code-block:: python

from numba import jitclass, types, typed
from numba import types, typed
from numba.experimental import jitclass

# key and value types
kv_ty = (types.int64, types.unicode_type)
Expand Down Expand Up @@ -131,7 +132,8 @@ example:

.. code-block:: python

from numba import jitclass, typed, typeof
from numba import typed, typeof
from numba.experimental import jitclass

d = typed.Dict()
d[1] = "apple"
Expand All @@ -158,7 +160,8 @@ instance of the type specified.

.. code-block:: python

from numba import jitclass, types
from numba import types
from numba.experimental import jitclass

dict_ty = types.DictType(types.int64, types.unicode_type)

Expand Down