Skip to content

Commit 54efc64

Browse files
Merge pull request plotly#2838 from plotly/plotlyjs-v1.57.0-compat
Make plotly.py's validator compatible with plotly.js 1.57.0 which now allows domain referenced axis references
2 parents 65ad155 + 4a849ce commit 54efc64

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/python/plotly/_plotly_utils/basevalidators.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,9 @@ def build_regex_replacement(regex_str):
477477
#
478478
# To be cautious, we only perform this conversion for enumerated
479479
# values that match the anchor-style regex
480-
match = re.match(r"\^(\w)\(\[2\-9\]\|\[1\-9\]\[0\-9\]\+\)\?\$", regex_str)
480+
match = re.match(
481+
r"\^(\w)\(\[2\-9\]\|\[1\-9\]\[0\-9\]\+\)\?\( domain\)\?\$", regex_str
482+
)
481483

482484
if match:
483485
anchor_char = match.group(1)

packages/python/plotly/optional-requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ psutil
2525

2626
## code formatting
2727
pre-commit
28-
black
28+
black==19.10b0
2929

3030
## codegen dependencies ##
3131
inflect

0 commit comments

Comments
 (0)