@classmethod
def items(cls):
    """
        This mimics the `dict` API, which is required for
        `numba` support.

        When passing an object to the `jitclass` decorator in
        `numba`, `numba` does `OrderedDict(my_obj)` to get the
        attribute and type specifications, which requires us to
        have this implemented.

        >>> from privates import NamedStruct
        >>> class Test(NamedStruct):
        ...     a: int
        ...     b: int
        >>> t = Test(1, 2)
        >>> t.items()
        dict_items([('a', <class 'int'>), ('b', <class 'int'>)])
        """
    return cls._fields().items()
