Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1127632

Browse files
authored
Merge pull request #21501 from anntzer/p3b
Refix for pyparsing compat.
2 parents 5d2e97e + ec497ae commit 1127632

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

lib/matplotlib/_mathtext.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from pyparsing import (
1616
Combine, Empty, FollowedBy, Forward, Group, Literal, oneOf, OneOrMore,
1717
Optional, ParseBaseException, ParseFatalException, ParserElement,
18-
ParseResults, QuotedString, Regex, StringEnd, Suppress, ZeroOrMore)
18+
ParseResults, QuotedString, Regex, StringEnd, Suppress, White, ZeroOrMore)
1919

2020
import matplotlib as mpl
2121
from . import _api, cbook
@@ -2060,6 +2060,7 @@ def __init__(self):
20602060
p.accent <<= Group(
20612061
Suppress(p.bslash)
20622062
+ oneOf([*self._accent_map, *self._wide_accents])
2063+
+ Suppress(Optional(White()))
20632064
- p.placeable
20642065
)
20652066

requirements/doc/doc-requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ ipython
1313
ipywidgets
1414
numpydoc>=0.8
1515
packaging>=20
16-
pyparsing<3.0.0
1716
mpl-sphinx-theme
1817
sphinxcontrib-svg2pdfconverter>=1.1.0
1918
sphinx-gallery>=0.10

requirements/testing/all.txt

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

33
certifi
44
coverage
5-
pyparsing<3.0.0
65
pytest!=4.6.0,!=5.4.0
76
pytest-cov
87
pytest-rerunfailures

0 commit comments

Comments
 (0)