File tree Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 1515 strategy :
1616 fail-fast : false
1717 matrix :
18- python-version : ["3.11"]
18+ python-version : ["3.11", "3.13" ]
1919
2020 steps :
2121 - uses : actions/checkout@v4
Original file line number Diff line number Diff line change @@ -238,7 +238,12 @@ def labelLines(
238238 xvals [i ] = new_xv # type: ignore
239239
240240 # Convert float values back to datetime in case of datetime axis
241- if isinstance (ax .xaxis .converter , DateConverter ):
241+ mpl_version = tuple (int (_ ) for _ in plt .matplotlib .__version__ .split ("." ))
242+ if mpl_version < (3 , 10 , 0 ):
243+ converter = ax .xaxis .converter
244+ else :
245+ converter = ax .xaxis .get_converter ()
246+ if isinstance (converter , DateConverter ):
242247 xvals = [
243248 num2date (x ).replace (tzinfo = ax .xaxis .get_units ())
244249 for x in xvals # type: ignore
Original file line number Diff line number Diff line change @@ -31,10 +31,10 @@ dependencies = [
3131
3232[project .optional-dependencies ]
3333test = [
34- " matplotlib==3.9.3 " ,
34+ " matplotlib==3.10.0 " ,
3535 " pytest-cov==6.0.0" ,
3636 " pytest-mpl==0.17.0" ,
37- " pytest==8.3.3 " ,
37+ " pytest==8.3.4 " ,
3838]
3939
4040[project .urls ]
You can’t perform that action at this time.
0 commit comments