Skip to content

Commit cca2596

Browse files
authored
Update src/numpy-stubs/@test/static/accept/temporal_scalar_ops.pyi
1 parent 04b68e7 commit cca2596

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/numpy-stubs/@test/static/accept/temporal_scalar_ops.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ td_timedelta: TD[dt.timedelta]
2121

2222
assert_type(dt_default + td_default, DT)
2323
assert_type(dt_default + td_none, DT[None])
24-
# mypy produces datetime64[Any] instead of datetime64[None] for datetime64[None] operands.
24+
# mypy incorrectly infers this as "timedelta64[Any]" but pyright behaves correctly
2525
assert_type(dt_none + td_default, DT[None]) # type: ignore[assert-type]
2626
assert_type(dt_int + td_int, DT[int])
2727
assert_type(dt_datetime + td_timedelta, DT[dt.datetime])

0 commit comments

Comments
 (0)