From 628e7a3c9c03ad887b4eb1fcdefaefeaa2f9eeed Mon Sep 17 00:00:00 2001 From: jorenham Date: Wed, 5 Feb 2025 20:03:14 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20add=20`=5F=5Fnew=5F=5F`=20to=20`?= =?UTF-8?q?numpy.str=5F`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/numpy-stubs/__init__.pyi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/numpy-stubs/__init__.pyi b/src/numpy-stubs/__init__.pyi index 703677d..3526bb4 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