Skip to content

Stubs missing for numpy._core._exceptions #53

Closed

Description

@jorenham
No description provided.

Activity

  1. added this to the v2.2.x.0 milestone on Feb 5, 2025
  2. added theissue type on Feb 5, 2025
  3. jorenham commented on Feb 10, 2025

    @jorenham
    MemberAuthor

    cleaned stubgen 1.15.0 output:

    import numpy as np
    from _typeshed import Incomplete
    from numpy._utils import set_module as set_module
    
    class UFuncTypeError(TypeError):
        ufunc: np.ufunc
        def __init__(self, /, ufunc: np.ufunc) -> None: ...
    
    class _UFuncNoLoopError(UFuncTypeError):
        dtypes: Incomplete
        def __init__(self, /, ufunc: np.ufunc, dtypes: Incomplete) -> None: ...
    
    class _UFuncBinaryResolutionError(_UFuncNoLoopError):
        def __init__(self, /, ufunc: np.ufunc, dtypes: Incomplete) -> None: ...
    
    class _UFuncCastingError(UFuncTypeError):
        casting: str
        from_: Incomplete
        to: Incomplete
        def __init__(self, /, ufunc: np.ufunc, casting: str, from_: Incomplete, to: Incomplete) -> None: ...
    
    class _UFuncInputCastingError(_UFuncCastingError):
        in_i: Incomplete
        def __init__(self, /, ufunc: np.ufunc, casting: str, from_: Incomplete, to: Incomplete, i: Incomplete) -> None: ...
    
    class _UFuncOutputCastingError(_UFuncCastingError):
        out_i: Incomplete
        def __init__(self, /, ufunc: np.ufunc, casting: str, from_: Incomplete, to: Incomplete, i: Incomplete) -> None: ...
    
    class _ArrayMemoryError(MemoryError):
        shape: tuple[int, ...]
        dtype: np.dtype[Incomplete]
        def __init__(self, /, shape: tuple[int, ...], dtype: np.dtype[Incomplete]) -> None: ...
        @property
        def _total_size(self) -> int: ...
        @staticmethod
        def _size_to_string(num_bytes: int) -> str: ...
    
    def _unpack_tuple(tup: Incomplete) -> Incomplete: ...
    def _display_as_base(cls: type[Exception]) -> type[Exception]: ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions