mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-30 13:51:37 +00:00
Implement integer literal formatting (#3183)
This commit is contained in:
parent
08be7bd285
commit
376eab3a53
4 changed files with 64 additions and 11 deletions
|
@ -48,11 +48,6 @@ y = 100(no)
|
|||
-x = (123456789e123456789).conjugate()
|
||||
-x = 123456789j.real
|
||||
-x = 123456789.123456789j.__add__(0b1011.bit_length())
|
||||
-x = 0xB1ACC.conjugate()
|
||||
-x = 0b1011.conjugate()
|
||||
-x = 0o777.real
|
||||
-x = (0.000000006).hex()
|
||||
-x = -100.0000j
|
||||
+x = .1.is_integer()
|
||||
+x = 1..imag
|
||||
+x = 1E+1.imag
|
||||
|
@ -62,9 +57,11 @@ y = 100(no)
|
|||
+x = 123456789E123456789.conjugate()
|
||||
+x = 123456789J.real
|
||||
+x = 123456789.123456789J.__add__(0b1011.bit_length())
|
||||
+x = 0XB1ACC.conjugate()
|
||||
+x = 0B1011.conjugate()
|
||||
+x = 0O777.real
|
||||
x = 0xB1ACC.conjugate()
|
||||
x = 0b1011.conjugate()
|
||||
x = 0o777.real
|
||||
-x = (0.000000006).hex()
|
||||
-x = -100.0000j
|
||||
+x = 0.000000006.hex()
|
||||
+x = -100.0000J
|
||||
|
||||
|
@ -91,9 +88,9 @@ x = 123456789.123456789E123456789.real
|
|||
x = 123456789E123456789.conjugate()
|
||||
x = 123456789J.real
|
||||
x = 123456789.123456789J.__add__(0b1011.bit_length())
|
||||
x = 0XB1ACC.conjugate()
|
||||
x = 0B1011.conjugate()
|
||||
x = 0O777.real
|
||||
x = 0xB1ACC.conjugate()
|
||||
x = 0b1011.conjugate()
|
||||
x = 0o777.real
|
||||
x = 0.000000006.hex()
|
||||
x = -100.0000J
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue