Skip to content

Commit 0184bd4

Browse files
committed
feat: regenerating validators with all recent changes
| File | Before (bytes) | After (bytes) | | --------- | -------------: | ------------: | | `.whl` | 16265568 | 9447645 | | `.tar.gz` | 7666222 | 6615305 |
1 parent f8daca4 commit 0184bd4

File tree

1,063 files changed

+13
-36806
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,063 files changed

+13
-36806
lines changed

codegen/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
# Target Python version for code formatting with Black.
3131
# Must be one of the values listed in pyproject.toml.
32-
BLACK_TARGET_VERSIONS = "py38 py39 py310 py311 py312"
32+
BLACK_TARGET_VERSIONS = "py39 py310 py311 py312"
3333

3434

3535
# Import notes

plotly/graph_objs/_layout.py

Lines changed: 12 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -34,32 +34,20 @@ def _subplotid_validators(self):
3434
-------
3535
dict
3636
"""
37-
from plotly.validators.layout import (
38-
ColoraxisValidator,
39-
GeoValidator,
40-
LegendValidator,
41-
MapValidator,
42-
MapboxValidator,
43-
PolarValidator,
44-
SceneValidator,
45-
SmithValidator,
46-
TernaryValidator,
47-
XaxisValidator,
48-
YaxisValidator,
49-
)
37+
from plotly.validator_cache import ValidatorCache
5038

5139
return {
52-
"coloraxis": ColoraxisValidator,
53-
"geo": GeoValidator,
54-
"legend": LegendValidator,
55-
"map": MapValidator,
56-
"mapbox": MapboxValidator,
57-
"polar": PolarValidator,
58-
"scene": SceneValidator,
59-
"smith": SmithValidator,
60-
"ternary": TernaryValidator,
61-
"xaxis": XaxisValidator,
62-
"yaxis": YaxisValidator,
40+
"coloraxis": ValidatorCache.get_validator("layout", "coloraxis"),
41+
"geo": ValidatorCache.get_validator("layout", "geo"),
42+
"legend": ValidatorCache.get_validator("layout", "legend"),
43+
"map": ValidatorCache.get_validator("layout", "map"),
44+
"mapbox": ValidatorCache.get_validator("layout", "mapbox"),
45+
"polar": ValidatorCache.get_validator("layout", "polar"),
46+
"scene": ValidatorCache.get_validator("layout", "scene"),
47+
"smith": ValidatorCache.get_validator("layout", "smith"),
48+
"ternary": ValidatorCache.get_validator("layout", "ternary"),
49+
"xaxis": ValidatorCache.get_validator("layout", "xaxis"),
50+
"yaxis": ValidatorCache.get_validator("layout", "yaxis"),
6351
}
6452

6553
def _subplot_re_match(self, prop):

plotly/validators/__init__.py

Lines changed: 0 additions & 117 deletions
This file was deleted.

plotly/validators/bar/__init__.py

Lines changed: 0 additions & 161 deletions
This file was deleted.

plotly/validators/bar/error_x/__init__.py

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)