mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 13:25:17 +00:00
70 lines
865 B
Python
70 lines
865 B
Python
x = {
|
|
"a": 1,
|
|
"a": 2,
|
|
"b": 3,
|
|
("a", "b"): 3,
|
|
("a", "b"): 4,
|
|
1.0: 2,
|
|
1: 0,
|
|
1: 3,
|
|
b"123": 1,
|
|
b"123": 4,
|
|
}
|
|
|
|
x = {
|
|
"a": 1,
|
|
"a": 2,
|
|
"a": 3,
|
|
"a": 3,
|
|
}
|
|
|
|
x = {
|
|
"a": 1,
|
|
"a": 2,
|
|
"a": 3,
|
|
"a": 3,
|
|
"a": 4,
|
|
}
|
|
|
|
x = {
|
|
"a": 1,
|
|
"a": 1,
|
|
"a": 2,
|
|
"a": 3,
|
|
"a": 4,
|
|
}
|
|
|
|
x = {
|
|
a: 1,
|
|
"a": 1,
|
|
a: 1,
|
|
"a": 2,
|
|
a: 2,
|
|
"a": 3,
|
|
a: 3,
|
|
"a": 3,
|
|
a: 4,
|
|
}
|
|
|
|
x = {"a": 1, "a": 1}
|
|
x = {"a": 1, "b": 2, "a": 1}
|
|
|
|
x = {
|
|
('a', 'b'): 'asdf',
|
|
('a', 'b'): 'qwer',
|
|
}
|
|
|
|
# Regression test for: https://github.com/astral-sh/ruff/issues/4897
|
|
t={"x":"test123", "x":("test123")}
|
|
|
|
t={"x":("test123"), "x":"test123"}
|
|
|
|
# Regression test for: https://github.com/astral-sh/ruff/issues/12772
|
|
x = {
|
|
1: "abc",
|
|
1: "def",
|
|
True: "ghi",
|
|
0: "foo",
|
|
0: "bar",
|
|
False: "baz",
|
|
}
|