Skip to content

Commit 56b9a80

Browse files
authored
change dict to literal (#38188)
1 parent b1c68e7 commit 56b9a80

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed

pandas/tests/plotting/frame/test_frame_subplots.py

+30-30
Original file line numberDiff line numberDiff line change
@@ -508,33 +508,33 @@ def test_xlabel_ylabel_dataframe_subplots(
508508
"kwargs",
509509
[
510510
# stacked center
511-
dict(kind="bar", stacked=True),
512-
dict(kind="bar", stacked=True, width=0.9),
513-
dict(kind="barh", stacked=True),
514-
dict(kind="barh", stacked=True, width=0.9),
511+
{"kind": "bar", "stacked": True},
512+
{"kind": "bar", "stacked": True, "width": 0.9},
513+
{"kind": "barh", "stacked": True},
514+
{"kind": "barh", "stacked": True, "width": 0.9},
515515
# center
516-
dict(kind="bar", stacked=False),
517-
dict(kind="bar", stacked=False, width=0.9),
518-
dict(kind="barh", stacked=False),
519-
dict(kind="barh", stacked=False, width=0.9),
516+
{"kind": "bar", "stacked": False},
517+
{"kind": "bar", "stacked": False, "width": 0.9},
518+
{"kind": "barh", "stacked": False},
519+
{"kind": "barh", "stacked": False, "width": 0.9},
520520
# subplots center
521-
dict(kind="bar", subplots=True),
522-
dict(kind="bar", subplots=True, width=0.9),
523-
dict(kind="barh", subplots=True),
524-
dict(kind="barh", subplots=True, width=0.9),
521+
{"kind": "bar", "subplots": True},
522+
{"kind": "bar", "subplots": True, "width": 0.9},
523+
{"kind": "barh", "subplots": True},
524+
{"kind": "barh", "subplots": True, "width": 0.9},
525525
# align edge
526-
dict(kind="bar", stacked=True, align="edge"),
527-
dict(kind="bar", stacked=True, width=0.9, align="edge"),
528-
dict(kind="barh", stacked=True, align="edge"),
529-
dict(kind="barh", stacked=True, width=0.9, align="edge"),
530-
dict(kind="bar", stacked=False, align="edge"),
531-
dict(kind="bar", stacked=False, width=0.9, align="edge"),
532-
dict(kind="barh", stacked=False, align="edge"),
533-
dict(kind="barh", stacked=False, width=0.9, align="edge"),
534-
dict(kind="bar", subplots=True, align="edge"),
535-
dict(kind="bar", subplots=True, width=0.9, align="edge"),
536-
dict(kind="barh", subplots=True, align="edge"),
537-
dict(kind="barh", subplots=True, width=0.9, align="edge"),
526+
{"kind": "bar", "stacked": True, "align": "edge"},
527+
{"kind": "bar", "stacked": True, "width": 0.9, "align": "edge"},
528+
{"kind": "barh", "stacked": True, "align": "edge"},
529+
{"kind": "barh", "stacked": True, "width": 0.9, "align": "edge"},
530+
{"kind": "bar", "stacked": False, "align": "edge"},
531+
{"kind": "bar", "stacked": False, "width": 0.9, "align": "edge"},
532+
{"kind": "barh", "stacked": False, "align": "edge"},
533+
{"kind": "barh", "stacked": False, "width": 0.9, "align": "edge"},
534+
{"kind": "bar", "subplots": True, "align": "edge"},
535+
{"kind": "bar", "subplots": True, "width": 0.9, "align": "edge"},
536+
{"kind": "barh", "subplots": True, "align": "edge"},
537+
{"kind": "barh", "subplots": True, "width": 0.9, "align": "edge"},
538538
],
539539
)
540540
def test_bar_align_multiple_columns(self, kwargs):
@@ -545,12 +545,12 @@ def test_bar_align_multiple_columns(self, kwargs):
545545
@pytest.mark.parametrize(
546546
"kwargs",
547547
[
548-
dict(kind="bar", stacked=False),
549-
dict(kind="bar", stacked=True),
550-
dict(kind="barh", stacked=False),
551-
dict(kind="barh", stacked=True),
552-
dict(kind="bar", subplots=True),
553-
dict(kind="barh", subplots=True),
548+
{"kind": "bar", "stacked": False},
549+
{"kind": "bar", "stacked": True},
550+
{"kind": "barh", "stacked": False},
551+
{"kind": "barh", "stacked": True},
552+
{"kind": "bar", "subplots": True},
553+
{"kind": "barh", "subplots": True},
554554
],
555555
)
556556
def test_bar_align_single_column(self, kwargs):

0 commit comments

Comments
 (0)