Skip to content

Commit 430154e

Browse files
committed
format: regenerate and reformat code using ruff
1 parent 0ce3df1 commit 430154e

File tree

1,062 files changed

+2120
-5302
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,062 files changed

+2120
-5302
lines changed

plotly/graph_objs/_bar.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77

88
class Bar(_BaseTraceType):
9-
109
_parent_path_str = ""
1110
_path_str = "bar"
1211
_valid_props = {
@@ -2510,12 +2509,10 @@ def __init__(
25102509
elif isinstance(arg, dict):
25112510
arg = _copy.copy(arg)
25122511
else:
2513-
raise ValueError(
2514-
"""\
2512+
raise ValueError("""\
25152513
The first argument to the plotly.graph_objs.Bar
25162514
constructor must be a dict or
2517-
an instance of :class:`plotly.graph_objs.Bar`"""
2518-
)
2515+
an instance of :class:`plotly.graph_objs.Bar`""")
25192516

25202517
self._skip_invalid = kwargs.pop("skip_invalid", False)
25212518
self._validate = kwargs.pop("_validate", True)

plotly/graph_objs/_barpolar.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77

88
class Barpolar(_BaseTraceType):
9-
109
_parent_path_str = ""
1110
_path_str = "barpolar"
1211
_valid_props = {
@@ -1545,12 +1544,10 @@ def __init__(
15451544
elif isinstance(arg, dict):
15461545
arg = _copy.copy(arg)
15471546
else:
1548-
raise ValueError(
1549-
"""\
1547+
raise ValueError("""\
15501548
The first argument to the plotly.graph_objs.Barpolar
15511549
constructor must be a dict or
1552-
an instance of :class:`plotly.graph_objs.Barpolar`"""
1553-
)
1550+
an instance of :class:`plotly.graph_objs.Barpolar`""")
15541551

15551552
self._skip_invalid = kwargs.pop("skip_invalid", False)
15561553
self._validate = kwargs.pop("_validate", True)

plotly/graph_objs/_box.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77

88
class Box(_BaseTraceType):
9-
109
_parent_path_str = ""
1110
_path_str = "box"
1211
_valid_props = {
@@ -2950,12 +2949,10 @@ def __init__(
29502949
elif isinstance(arg, dict):
29512950
arg = _copy.copy(arg)
29522951
else:
2953-
raise ValueError(
2954-
"""\
2952+
raise ValueError("""\
29552953
The first argument to the plotly.graph_objs.Box
29562954
constructor must be a dict or
2957-
an instance of :class:`plotly.graph_objs.Box`"""
2958-
)
2955+
an instance of :class:`plotly.graph_objs.Box`""")
29592956

29602957
self._skip_invalid = kwargs.pop("skip_invalid", False)
29612958
self._validate = kwargs.pop("_validate", True)

plotly/graph_objs/_candlestick.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77

88
class Candlestick(_BaseTraceType):
9-
109
_parent_path_str = ""
1110
_path_str = "candlestick"
1211
_valid_props = {
@@ -1614,12 +1613,10 @@ def __init__(
16141613
elif isinstance(arg, dict):
16151614
arg = _copy.copy(arg)
16161615
else:
1617-
raise ValueError(
1618-
"""\
1616+
raise ValueError("""\
16191617
The first argument to the plotly.graph_objs.Candlestick
16201618
constructor must be a dict or
1621-
an instance of :class:`plotly.graph_objs.Candlestick`"""
1622-
)
1619+
an instance of :class:`plotly.graph_objs.Candlestick`""")
16231620

16241621
self._skip_invalid = kwargs.pop("skip_invalid", False)
16251622
self._validate = kwargs.pop("_validate", True)

plotly/graph_objs/_carpet.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77

88
class Carpet(_BaseTraceType):
9-
109
_parent_path_str = ""
1110
_path_str = "carpet"
1211
_valid_props = {
@@ -1206,12 +1205,10 @@ def __init__(
12061205
elif isinstance(arg, dict):
12071206
arg = _copy.copy(arg)
12081207
else:
1209-
raise ValueError(
1210-
"""\
1208+
raise ValueError("""\
12111209
The first argument to the plotly.graph_objs.Carpet
12121210
constructor must be a dict or
1213-
an instance of :class:`plotly.graph_objs.Carpet`"""
1214-
)
1211+
an instance of :class:`plotly.graph_objs.Carpet`""")
12151212

12161213
self._skip_invalid = kwargs.pop("skip_invalid", False)
12171214
self._validate = kwargs.pop("_validate", True)

plotly/graph_objs/_choropleth.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77

88
class Choropleth(_BaseTraceType):
9-
109
_parent_path_str = ""
1110
_path_str = "choropleth"
1211
_valid_props = {
@@ -1693,12 +1692,10 @@ def __init__(
16931692
elif isinstance(arg, dict):
16941693
arg = _copy.copy(arg)
16951694
else:
1696-
raise ValueError(
1697-
"""\
1695+
raise ValueError("""\
16981696
The first argument to the plotly.graph_objs.Choropleth
16991697
constructor must be a dict or
1700-
an instance of :class:`plotly.graph_objs.Choropleth`"""
1701-
)
1698+
an instance of :class:`plotly.graph_objs.Choropleth`""")
17021699

17031700
self._skip_invalid = kwargs.pop("skip_invalid", False)
17041701
self._validate = kwargs.pop("_validate", True)

plotly/graph_objs/_choroplethmap.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77

88
class Choroplethmap(_BaseTraceType):
9-
109
_parent_path_str = ""
1110
_path_str = "choroplethmap"
1211
_valid_props = {
@@ -1687,12 +1686,10 @@ def __init__(
16871686
elif isinstance(arg, dict):
16881687
arg = _copy.copy(arg)
16891688
else:
1690-
raise ValueError(
1691-
"""\
1689+
raise ValueError("""\
16921690
The first argument to the plotly.graph_objs.Choroplethmap
16931691
constructor must be a dict or
1694-
an instance of :class:`plotly.graph_objs.Choroplethmap`"""
1695-
)
1692+
an instance of :class:`plotly.graph_objs.Choroplethmap`""")
16961693

16971694
self._skip_invalid = kwargs.pop("skip_invalid", False)
16981695
self._validate = kwargs.pop("_validate", True)

plotly/graph_objs/_choroplethmapbox.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88

99
class Choroplethmapbox(_BaseTraceType):
10-
1110
_parent_path_str = ""
1211
_path_str = "choroplethmapbox"
1312
_valid_props = {
@@ -1707,12 +1706,10 @@ def __init__(
17071706
elif isinstance(arg, dict):
17081707
arg = _copy.copy(arg)
17091708
else:
1710-
raise ValueError(
1711-
"""\
1709+
raise ValueError("""\
17121710
The first argument to the plotly.graph_objs.Choroplethmapbox
17131711
constructor must be a dict or
1714-
an instance of :class:`plotly.graph_objs.Choroplethmapbox`"""
1715-
)
1712+
an instance of :class:`plotly.graph_objs.Choroplethmapbox`""")
17161713

17171714
self._skip_invalid = kwargs.pop("skip_invalid", False)
17181715
self._validate = kwargs.pop("_validate", True)

plotly/graph_objs/_cone.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77

88
class Cone(_BaseTraceType):
9-
109
_parent_path_str = ""
1110
_path_str = "cone"
1211
_valid_props = {
@@ -2185,12 +2184,10 @@ def __init__(
21852184
elif isinstance(arg, dict):
21862185
arg = _copy.copy(arg)
21872186
else:
2188-
raise ValueError(
2189-
"""\
2187+
raise ValueError("""\
21902188
The first argument to the plotly.graph_objs.Cone
21912189
constructor must be a dict or
2192-
an instance of :class:`plotly.graph_objs.Cone`"""
2193-
)
2190+
an instance of :class:`plotly.graph_objs.Cone`""")
21942191

21952192
self._skip_invalid = kwargs.pop("skip_invalid", False)
21962193
self._validate = kwargs.pop("_validate", True)

plotly/graph_objs/_contour.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77

88
class Contour(_BaseTraceType):
9-
109
_parent_path_str = ""
1110
_path_str = "contour"
1211
_valid_props = {
@@ -2529,12 +2528,10 @@ def __init__(
25292528
elif isinstance(arg, dict):
25302529
arg = _copy.copy(arg)
25312530
else:
2532-
raise ValueError(
2533-
"""\
2531+
raise ValueError("""\
25342532
The first argument to the plotly.graph_objs.Contour
25352533
constructor must be a dict or
2536-
an instance of :class:`plotly.graph_objs.Contour`"""
2537-
)
2534+
an instance of :class:`plotly.graph_objs.Contour`""")
25382535

25392536
self._skip_invalid = kwargs.pop("skip_invalid", False)
25402537
self._validate = kwargs.pop("_validate", True)

plotly/graph_objs/_contourcarpet.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77

88
class Contourcarpet(_BaseTraceType):
9-
109
_parent_path_str = ""
1110
_path_str = "contourcarpet"
1211
_valid_props = {
@@ -1769,12 +1768,10 @@ def __init__(
17691768
elif isinstance(arg, dict):
17701769
arg = _copy.copy(arg)
17711770
else:
1772-
raise ValueError(
1773-
"""\
1771+
raise ValueError("""\
17741772
The first argument to the plotly.graph_objs.Contourcarpet
17751773
constructor must be a dict or
1776-
an instance of :class:`plotly.graph_objs.Contourcarpet`"""
1777-
)
1774+
an instance of :class:`plotly.graph_objs.Contourcarpet`""")
17781775

17791776
self._skip_invalid = kwargs.pop("skip_invalid", False)
17801777
self._validate = kwargs.pop("_validate", True)

plotly/graph_objs/_densitymap.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77

88
class Densitymap(_BaseTraceType):
9-
109
_parent_path_str = ""
1110
_path_str = "densitymap"
1211
_valid_props = {
@@ -1661,12 +1660,10 @@ def __init__(
16611660
elif isinstance(arg, dict):
16621661
arg = _copy.copy(arg)
16631662
else:
1664-
raise ValueError(
1665-
"""\
1663+
raise ValueError("""\
16661664
The first argument to the plotly.graph_objs.Densitymap
16671665
constructor must be a dict or
1668-
an instance of :class:`plotly.graph_objs.Densitymap`"""
1669-
)
1666+
an instance of :class:`plotly.graph_objs.Densitymap`""")
16701667

16711668
self._skip_invalid = kwargs.pop("skip_invalid", False)
16721669
self._validate = kwargs.pop("_validate", True)

plotly/graph_objs/_densitymapbox.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88

99
class Densitymapbox(_BaseTraceType):
10-
1110
_parent_path_str = ""
1211
_path_str = "densitymapbox"
1312
_valid_props = {
@@ -1680,12 +1679,10 @@ def __init__(
16801679
elif isinstance(arg, dict):
16811680
arg = _copy.copy(arg)
16821681
else:
1683-
raise ValueError(
1684-
"""\
1682+
raise ValueError("""\
16851683
The first argument to the plotly.graph_objs.Densitymapbox
16861684
constructor must be a dict or
1687-
an instance of :class:`plotly.graph_objs.Densitymapbox`"""
1688-
)
1685+
an instance of :class:`plotly.graph_objs.Densitymapbox`""")
16891686

16901687
self._skip_invalid = kwargs.pop("skip_invalid", False)
16911688
self._validate = kwargs.pop("_validate", True)

plotly/graph_objs/_figure.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66

77
class Figure(BaseFigure):
8-
98
def __init__(
109
self, data=None, layout=None, frames=None, skip_invalid=False, **kwargs
1110
):

plotly/graph_objs/_figurewidget.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66

77
class FigureWidget(BaseFigureWidget):
8-
98
def __init__(
109
self, data=None, layout=None, frames=None, skip_invalid=False, **kwargs
1110
):

plotly/graph_objs/_frame.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77

88
class Frame(_BaseFrameHierarchyType):
9-
109
_parent_path_str = ""
1110
_path_str = "frame"
1211
_valid_props = {"baseframe", "data", "group", "layout", "name", "traces"}
@@ -203,12 +202,10 @@ def __init__(
203202
elif isinstance(arg, dict):
204203
arg = _copy.copy(arg)
205204
else:
206-
raise ValueError(
207-
"""\
205+
raise ValueError("""\
208206
The first argument to the plotly.graph_objs.Frame
209207
constructor must be a dict or
210-
an instance of :class:`plotly.graph_objs.Frame`"""
211-
)
208+
an instance of :class:`plotly.graph_objs.Frame`""")
212209

213210
self._skip_invalid = kwargs.pop("skip_invalid", False)
214211
self._validate = kwargs.pop("_validate", True)

plotly/graph_objs/_funnel.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77

88
class Funnel(_BaseTraceType):
9-
109
_parent_path_str = ""
1110
_path_str = "funnel"
1211
_valid_props = {
@@ -2312,12 +2311,10 @@ def __init__(
23122311
elif isinstance(arg, dict):
23132312
arg = _copy.copy(arg)
23142313
else:
2315-
raise ValueError(
2316-
"""\
2314+
raise ValueError("""\
23172315
The first argument to the plotly.graph_objs.Funnel
23182316
constructor must be a dict or
2319-
an instance of :class:`plotly.graph_objs.Funnel`"""
2320-
)
2317+
an instance of :class:`plotly.graph_objs.Funnel`""")
23212318

23222319
self._skip_invalid = kwargs.pop("skip_invalid", False)
23232320
self._validate = kwargs.pop("_validate", True)

plotly/graph_objs/_funnelarea.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77

88
class Funnelarea(_BaseTraceType):
9-
109
_parent_path_str = ""
1110
_path_str = "funnelarea"
1211
_valid_props = {
@@ -1580,12 +1579,10 @@ def __init__(
15801579
elif isinstance(arg, dict):
15811580
arg = _copy.copy(arg)
15821581
else:
1583-
raise ValueError(
1584-
"""\
1582+
raise ValueError("""\
15851583
The first argument to the plotly.graph_objs.Funnelarea
15861584
constructor must be a dict or
1587-
an instance of :class:`plotly.graph_objs.Funnelarea`"""
1588-
)
1585+
an instance of :class:`plotly.graph_objs.Funnelarea`""")
15891586

15901587
self._skip_invalid = kwargs.pop("skip_invalid", False)
15911588
self._validate = kwargs.pop("_validate", True)

0 commit comments

Comments
 (0)