# Typed dict with with set (int64) values inside of a JITClass

**URL:** <https://numba.discourse.group/t/typed-dict-with-with-set-int64-values-inside-of-a-jitclass/1280>\
**Category:** Support: How do I do ...?\
**Created:** [April 1, 2022, 4:18pm UTC](https://numba.discourse.group/t/typed-dict-with-with-set-int64-values-inside-of-a-jitclass/1280 "2022-04-01T16:18:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![devmessias](https://yyz2.discourse-cdn.com/free1/user_avatar/numba.discourse.group/devmessias/32/573_2.png) [@devmessias](https://numba.discourse.group/u/devmessias)\
**Post date:** [April 1, 2022, 4:18pm UTC](https://numba.discourse.group/t/typed-dict-with-with-set-int64-values-inside-of-a-jitclass/1280/1 "2022-04-01T16:18:10Z")

</div>

Hi all.

I’m trying to create a typed dict to be used in JITClass. The type of each value for each key should be a Set of int values.

```python
set_nb_int = nb_Set(nb.types.int64, reflected=False)
nb_set_dict = nb.types.DictType(nb.types.int64, set_nb_int)

@jitclass(
    {
        "vertex2nei": nb_DictType(nb_int64, list_nb_int)
    }
)
class Neighbors:
    def __init__ (self):
        self.vertex2nei = nb_Dict.empty(nb_int64, nb_set_dict)
    def something(self):
       ....

```

The above code produces the following error

```auto
E numba.core.errors.TypingError: set(int64) as value is forbidden

```

How can I do this?

---

<div class="post-metadata">

**Author:** ![nelson2005](https://yyz2.discourse-cdn.com/free1/user_avatar/numba.discourse.group/nelson2005/32/47_2.png) [@nelson2005](https://numba.discourse.group/u/nelson2005)\
**Post date:** [April 2, 2022, 12:39am UTC](https://numba.discourse.group/t/typed-dict-with-with-set-int64-values-inside-of-a-jitclass/1280/2 "2022-04-02T00:39:06Z")

</div>

Can you supply a minimal complete example that demonstrates what your trying to do?
