3030import matplotlib
3131from matplotlib import _api , _c_internal_utils
3232from matplotlib ._api .deprecation import (
33- deprecated , warn_deprecated , MatplotlibDeprecationWarning , mplDeprecation )
33+ warn_deprecated , MatplotlibDeprecationWarning , mplDeprecation )
34+
35+
36+ @_api .deprecated ("3.4" )
37+ def deprecated (* args , ** kwargs ):
38+ return _api .deprecated (* args , ** kwargs )
3439
3540
3641def _get_running_interactive_framework ():
@@ -287,7 +292,7 @@ def __repr__(self):
287292 return "<an empty list>"
288293
289294
290- @deprecated ("3.3" )
295+ @_api . deprecated ("3.3" )
291296class IgnoredKeywordWarning (UserWarning ):
292297 """
293298 A class for issuing warnings about keyword arguments that will be ignored
@@ -296,7 +301,7 @@ class IgnoredKeywordWarning(UserWarning):
296301 pass
297302
298303
299- @deprecated ("3.3" , alternative = "normalize_kwargs" )
304+ @_api . deprecated ("3.3" , alternative = "normalize_kwargs" )
300305def local_over_kwdict (local_var , kwargs , * keys ):
301306 """
302307 Enforces the priority of a local variable over potentially conflicting
@@ -532,7 +537,7 @@ def flatten(seq, scalarp=is_scalar_or_string):
532537 yield from flatten (item , scalarp )
533538
534539
535- @deprecated ("3.3" , alternative = "os.path.realpath and os.stat" )
540+ @_api . deprecated ("3.3" , alternative = "os.path.realpath and os.stat" )
536541@functools .lru_cache ()
537542def get_realpath_and_stat (path ):
538543 realpath = os .path .realpath (path )
0 commit comments