diff options
-rw-r--r-- | numpy/__init__.pyi | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/numpy/__init__.pyi b/numpy/__init__.pyi index e2a99bdbe..0009d5fd9 100644 --- a/numpy/__init__.pyi +++ b/numpy/__init__.pyi @@ -2537,8 +2537,8 @@ class object_(generic): object0 = object_ -#Added Protocol to typecheck for day, month, year property to be used in -#datetime64 constructor per Issue #18640 and BvB93s recommendation +# The `datetime64` constructors requires an object with the three attributes below, +# and thus supports datetime duck typing class _DatetimeScalar(Protocol): @property def day(self) -> int: ... @@ -2549,8 +2549,6 @@ class _DatetimeScalar(Protocol): class datetime64(generic): - #Replaced dt.datetime with _DatetimeScalar per issue #18640 and - #BvB93s recommendation @overload def __init__( self, |