Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions mypy/typeshed/stubs/mypy-extensions/mypy_extensions.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ class i64:
def __neg__(self) -> i64: ...
def __invert__(self) -> i64: ...
def __pos__(self) -> i64: ...
def __abs__(self) -> i64: ...
def __lt__(self, x: i64) -> bool: ...
def __le__(self, x: i64) -> bool: ...
def __ge__(self, x: i64) -> bool: ...
Expand Down Expand Up @@ -143,6 +144,7 @@ class i32:
def __neg__(self) -> i32: ...
def __invert__(self) -> i32: ...
def __pos__(self) -> i32: ...
def __abs__(self) -> i32: ...
def __lt__(self, x: i32) -> bool: ...
def __le__(self, x: i32) -> bool: ...
def __ge__(self, x: i32) -> bool: ...
Expand Down Expand Up @@ -180,6 +182,7 @@ class i16:
def __neg__(self) -> i16: ...
def __invert__(self) -> i16: ...
def __pos__(self) -> i16: ...
def __abs__(self) -> i16: ...
def __lt__(self, x: i16) -> bool: ...
def __le__(self, x: i16) -> bool: ...
def __ge__(self, x: i16) -> bool: ...
Expand Down Expand Up @@ -217,6 +220,7 @@ class u8:
def __neg__(self) -> u8: ...
def __invert__(self) -> u8: ...
def __pos__(self) -> u8: ...
def __abs__(self) -> u8: ...
def __lt__(self, x: u8) -> bool: ...
def __le__(self, x: u8) -> bool: ...
def __ge__(self, x: u8) -> bool: ...
Expand Down
3 changes: 3 additions & 0 deletions mypyc/test-data/run-i16.test
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ def test_simple_arithmetic_ops() -> None:
assert -two == -2
assert -neg_one == 1
assert -zero == 0
assert abs(one) == 1
assert abs(neg_one) == 1
assert abs(zero) == 0

def test_bitwise_ops() -> None:
x: i16 = 13855 + int()
Expand Down
3 changes: 3 additions & 0 deletions mypyc/test-data/run-i32.test
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ def test_simple_arithmetic_ops() -> None:
assert -two == -2
assert -neg_one == 1
assert -zero == 0
assert abs(one) == 1
assert abs(neg_one) == 1
assert abs(zero) == 0

def test_bitwise_ops() -> None:
x: i32 = 1920687484 + int()
Expand Down
3 changes: 3 additions & 0 deletions mypyc/test-data/run-i64.test
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,9 @@ def test_simple_arithmetic_ops() -> None:
assert -two == -2
assert -neg_one == 1
assert -zero == 0
assert abs(one) == 1
assert abs(neg_one) == 1
assert abs(zero) == 0

def test_bitwise_ops() -> None:
x: i64 = 7997307308812232241 + int()
Expand Down
3 changes: 3 additions & 0 deletions mypyc/test-data/run-u8.test
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ def test_simple_arithmetic_ops() -> None:
assert -two == 254
assert -neg_one == 1
assert -zero == 0
assert abs(one) == 1
assert abs(neg_one) == 255
assert abs(zero) == 0

def test_bitwise_ops() -> None:
x: u8 = 184 + int()
Expand Down
4 changes: 4 additions & 0 deletions test-data/unit/lib-stub/mypy_extensions.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ class u8:
def __neg__(self) -> u8: ...
def __invert__(self) -> u8: ...
def __pos__(self) -> u8: ...
def __abs__(self) -> u8: ...
def __lt__(self, x: u8) -> bool: ...
def __le__(self, x: u8) -> bool: ...
def __ge__(self, x: u8) -> bool: ...
Expand Down Expand Up @@ -107,6 +108,7 @@ class i16:
def __neg__(self) -> i16: ...
def __invert__(self) -> i16: ...
def __pos__(self) -> i16: ...
def __abs__(self) -> i16: ...
def __lt__(self, x: i16) -> bool: ...
def __le__(self, x: i16) -> bool: ...
def __ge__(self, x: i16) -> bool: ...
Expand Down Expand Up @@ -137,6 +139,7 @@ class i32:
def __neg__(self) -> i32: ...
def __invert__(self) -> i32: ...
def __pos__(self) -> i32: ...
def __abs__(self) -> i32: ...
def __lt__(self, x: i32) -> bool: ...
def __le__(self, x: i32) -> bool: ...
def __ge__(self, x: i32) -> bool: ...
Expand Down Expand Up @@ -167,6 +170,7 @@ class i64:
def __neg__(self) -> i64: ...
def __invert__(self) -> i64: ...
def __pos__(self) -> i64: ...
def __abs__(self) -> i64: ...
def __lt__(self, x: i64) -> bool: ...
def __le__(self, x: i64) -> bool: ...
def __ge__(self, x: i64) -> bool: ...
Expand Down
Loading