mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-15 16:27:08 +08:00
Bump pyright to 1.1.372 (#12361)
This commit is contained in:
@@ -17,7 +17,11 @@ assert_type(pow(1, 0, None), Literal[1])
|
||||
# assert_type(pow(2, 4, 0), NoReturn)
|
||||
|
||||
assert_type(pow(2, 4), int)
|
||||
assert_type(2**4, int)
|
||||
# pyright infers a literal type here, but mypy does not. Unfortunately,
|
||||
# there is no way to ignore an error only for mypy, so we can't check
|
||||
# pyright's handling (https://github.com/python/mypy/issues/12358).
|
||||
assert_type(2**4, int) # pyright: ignore
|
||||
# pyright version: assert_type(2**4, Literal[16])
|
||||
assert_type(pow(4, 6, None), int)
|
||||
|
||||
assert_type(pow(5, -7), float)
|
||||
|
||||
Reference in New Issue
Block a user