Skip to content

Commit c61f750

Browse files
committed
keep divmod(na, 1), ignore pyright, link to issue
1 parent ce16ae2 commit c61f750

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/test_natype.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,10 @@ def test_arithmetic() -> None:
102102
# ),
103103
# tuple,
104104
# )
105-
check(assert_type(na.__divmod__(1), tuple[NAType, NAType]), tuple)
105+
# https://github.com/microsoft/pyright/issues/10899.
106+
check(
107+
assert_type(divmod(na, 1), tuple[NAType, NAType]), tuple
108+
) # pyright: ignore[reportArgumentType, reportCallIssue, reportAssertTypeFailure]
106109

107110
# __rdivmod__
108111
# bug upstream: https://github.com/pandas-dev/pandas/issues/62196

0 commit comments

Comments
 (0)