mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 13:25:17 +00:00
28 lines
548 B
Python
28 lines
548 B
Python
# Errors
|
|
"{.real}".format(1)
|
|
"{0.real}".format(1)
|
|
"{a.real}".format(a=1)
|
|
|
|
"{.real}".format(1.0)
|
|
"{0.real}".format(1.0)
|
|
"{a.real}".format(a=1.0)
|
|
|
|
"{.real}".format(1j)
|
|
"{0.real}".format(1j)
|
|
"{a.real}".format(a=1j)
|
|
|
|
"{.real}".format(0b01)
|
|
"{0.real}".format(0b01)
|
|
"{a.real}".format(a=0b01)
|
|
|
|
"{}".format(1 + 2)
|
|
"{}".format([1, 2])
|
|
"{}".format({1, 2})
|
|
"{}".format({1: 2, 3: 4})
|
|
"{}".format((i for i in range(2)))
|
|
|
|
"{.real}".format(1 + 2)
|
|
"{.real}".format([1, 2])
|
|
"{.real}".format({1, 2})
|
|
"{.real}".format({1: 2, 3: 4})
|
|
"{}".format((i for i in range(2)))
|