Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
MAINT: deprecate validCap, validJoin#18817
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
b884fe9
toc505b7b
CompareThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
We don't normally put a full version number with micro component.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
I would also maybe wait until deprecation machinery is properly exposed from |
4f55d60
to384d96a
Compare
Should be clean of any new references to |
384d96a
tod9674c3
Comparebrunobeltran commentedNov 3, 2020 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@timhoffm Can you review whether this is the way you want |
Per the call, this should wait until I silence the deprecation warnings this emits in conf.py, specifically for autodoc. |
c6c3cd6
toaed162f
CompareExtra warnings have been quenched in |
Uh oh!
There was an error while loading.Please reload this page.
lib/matplotlib/_api/deprecation.py Outdated
@@ -16,6 +16,42 @@ | |||
import warnings | |||
# has to be here (instead of cbook) to prevent circular import, since | |||
# deprecation.deprecated is *used* during cbook's import | |||
class _classproperty: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Since_api
is already private.
class_classproperty: | |
classclassproperty: |
Also, this isn't actually a deprecation; does it belong in this file, or in_api/__init__.py
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Most of the functions in_api.deprecation
are still underscore delimited for direct importing intocbook.deprecation
, happy to fix this one as long as you guys (@timhoffm) are cool with me sending in another PR to do this to the rest of the methods in_api
, since I would feel gross if we end up with some random combination of underscores and no underscores.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Oh, almost missed your other question. It should be in__init__
now thatdeprecation
isn't incbook
there's no more import-time circular stuff that can't be avoided by a local import.
lib/matplotlib/_api/deprecation.py Outdated
@@ -16,6 +16,42 @@ | |||
import warnings | |||
# has to be here (instead of cbook) to prevent circular import, since |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
It will never be incbook
again; should this say_api
, or is the comment now irrelevant?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Yeah sorry, this comment was from before the_api
changes, and should definitely read_api
, not cbook.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
ab249b4
to46866fb
CompareThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Small docstring typo.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
46866fb
to0b71fe0
Compare
Uh oh!
There was an error while loading.Please reload this page.
PR Summary
Needed for#18544 (GSOD). Some new machinery was needed to add the deprecation while keeping the existing API (namely, the ability to access
validJoin
as a class property directly, i.e.Line2D.validJoin
), so I pulled the necessary code out into this PR.These properties already have long-existing comments marking them as "only there for backwards compatibility", and deprecation was initially suggested by@QuLogic.
PR Checklist
pytest
passes).flake8
on changed files to check).flake8-docstrings
and runflake8 --docstring-convention=all
).doc/users/next_whats_new/
(follow instructions in README.rst there).doc/api/next_api_changes/
(follow instructions in README.rst there).