"""
This type stub file was generated by pyright.
"""

"""Object namespace"""
IMPORT_EXCEPT = ...
class ObjectBase(_ObjectBase):
    """ObjectBase is the base class of all DGL CAPI object.

    The core attribute is ``handle``, which is a C raw pointer.  It must be initialized
    via ``__init_handle_by_constructor__``.

    Note that the same handle **CANNOT** be shared across multiple ObjectBase instances.
    """
    def __dir__(self): # -> list[Unknown]:
        ...
    
    def __hash__(self) -> int:
        ...
    
    def __eq__(self, other) -> bool:
        ...
    
    def __ne__(self, other) -> bool:
        ...
    
    def __reduce__(self): # -> NoReturn:
        ...
    
    def __getstate__(self): # -> NoReturn:
        ...
    
    def __setstate__(self, state): # -> NoReturn:
        ...
    
    def same_as(self, other): # -> Literal[False]:
        """check object identity equality"""
        ...
    


def register_object(type_key=...): # -> (cls: Unknown) -> Unknown:
    """Decorator used to register object type

    Examples
    --------
    >>> @register_object
    >>> class MyObject:
    >>> ... pass

    Parameters
    ----------
    type_key : str or cls
        The type key of the object
    """
    ...

