8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f288977 commit bb5d400Copy full SHA for bb5d400
lib/matplotlib/cbook/deprecation.py
@@ -201,18 +201,21 @@ def finalize(wrapper, new_doc):
201
202
class _deprecated_property(property):
203
def __get__(self, instance, owner):
204
- from . import _warn_external
205
- _warn_external(message, category)
+ if instance is not None:
+ from . import _warn_external
206
+ _warn_external(message, category)
207
return super().__get__(instance, owner)
208
209
def __set__(self, instance, value):
210
211
212
213
return super().__set__(instance, value)
214
215
def __delete__(self, instance):
216
217
218
219
return super().__delete__(instance)
220
221
def finalize(_, new_doc):
0 commit comments