We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04b68e7 commit cca2596Copy full SHA for cca2596
1 file changed
src/numpy-stubs/@test/static/accept/temporal_scalar_ops.pyi
@@ -21,7 +21,7 @@ td_timedelta: TD[dt.timedelta]
21
22
assert_type(dt_default + td_default, DT)
23
assert_type(dt_default + td_none, DT[None])
24
-# mypy produces datetime64[Any] instead of datetime64[None] for datetime64[None] operands.
+# mypy incorrectly infers this as "timedelta64[Any]" but pyright behaves correctly
25
assert_type(dt_none + td_default, DT[None]) # type: ignore[assert-type]
26
assert_type(dt_int + td_int, DT[int])
27
assert_type(dt_datetime + td_timedelta, DT[dt.datetime])
0 commit comments