diff --git a/src/numpy-stubs/__init__.pyi b/src/numpy-stubs/__init__.pyi index 703677d6..3526bb4a 100644 --- a/src/numpy-stubs/__init__.pyi +++ b/src/numpy-stubs/__init__.pyi @@ -5120,6 +5120,12 @@ class bytes_(character[bytes], bytes): def __bytes__(self, /) -> bytes: ... class str_(character[str], str): + @overload + def __new__(cls, value: object = ..., /) -> Self: ... + @overload + def __new__(cls, value: bytes, /, encoding: str = ..., errors: str = ...) -> Self: ... + + # @overload def __init__(self, value: object = ..., /) -> None: ... @overload