Skip to content

Commit 499bfb4

Browse files
committed
Merge branch 'bit-length' of https://github.com/BobTheBuidler/mypy into bit-length
2 parents 9d4116e + b133de3 commit 499bfb4

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

mypyc/primitives/int_ops.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,14 @@
3131
str_rprimitive,
3232
void_rtype,
3333
)
34-
from mypyc.primitives.registry import binary_op, custom_op, function_op, load_address_op, unary_op
34+
from mypyc.primitives.registry import (
35+
binary_op,
36+
custom_op,
37+
function_op,
38+
load_address_op,
39+
method_op,
40+
unary_op,
41+
)
3542

3643
# Constructors for builtins.int and native int types have the same behavior. In
3744
# interpreted mode, native int types are just aliases to 'int'.

mypyc/test-data/run-integers.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,4 +581,4 @@ def test_bit_length() -> None:
581581
assert bit_length(1) == 1
582582
assert bit_length(255) == 8
583583
assert bit_length(256) == 9
584-
assert bit_length(-256) == 9
584+
assert bit_length(-256) == 9

0 commit comments

Comments
 (0)