8000 Fix import errors and extend module docs · matplotlib/matplotlib@aec6841 · GitHub
[go: up one dir, main page]

Skip to content

Commit aec6841

Browse files
committed
Fix import errors and extend module docs
1 parent 644872b commit aec6841

File tree

3 files changed

+19
-4
lines changed

3 files changed

+19
-4
lines changed

lib/matplotlib/_api/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
"""
22
Helper functions for managing the Matplotlib API.
33
4+
This documentation is only relevant for Matplotlib developers, not for users.
5+
46
.. warning:
57
6-
This module and its submodules is for internal use only.
8+
This module and its submodules are for internal use only. Do not use them
9+
in your own code. We may change the API at any time with no warning.
710
811
"""
912

lib/matplotlib/_api/deprecation.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
"""
2+
Helper functions for deprecating parts of the Matplotlib API.
3+
4+
This documentation is only relevant for Matplotlib developers, not for users.
5+
6+
.. warning:
7+
8+
This module is for internal use only. Do not use it in your own code.
9+
We may change the API at any time with no warning.
10+
11+
"""
12+
113
import contextlib
214
import functools
315
import inspect

lib/matplotlib/patches.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import numpy as np
1010

1111
import matplotlib as mpl
12-
from . import (artist, cbook, colors, docstring, hatch as mhatch,
12+
from . import (_api, artist, cbook, colors, docstring, hatch as mhatch,
1313
lines as mlines, transforms)
1414
from .bezier import (
1515
NonIntersectingPathException, get_cos_sin, get_intersection,
@@ -2007,8 +2007,8 @@ def __init_subclass__(cls):
20072007
@cbook._delete_parameter("3.4", "mutation_aspect")
20082008
def call_wrapper(
20092009
self, x0, y0, width, height, mutation_size,
2010-
mutation_aspect=cbook.deprecation._deprecated_parameter):
2011-
if mutation_aspect is cbook.deprecation._deprecated_parameter:
2010+
mutation_aspect=_api.deprecation._deprecated_parameter):
2011+
if mutation_aspect is _api.deprecation._deprecated_parameter:
20122012
# Don't trigger deprecation warning internally.
20132013
return __call__(self, x0, y0, width, height, mutation_size)
20142014
else:

0 commit comments

Comments
 (0)
0