Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix deprecation messages for vendoring unused things#23711

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

Merged

Conversation

QuLogic
Copy link
Member

PR Summary

Formerly, the deprecation message would say "Use Vendor the code instead"; now they say "Use a vendored copy of the code instead", etc.

This weird grammar can cause some confusion, cf#23244

PR Checklist

Tests and Styling

  • [n/a] Has pytest style unit tests (andpytest passes).
  • IsFlake 8 compliant (installflake8-docstrings and runflake8 --docstring-convention=all).

Documentation

  • [n/a] New features are documented, with examples if plot related.
  • [n/a] New features have an entry indoc/users/next_whats_new/ (follow instructions in README.rst there).
  • [n/a] API changes documented indoc/api/next_api_changes/ (follow instructions in README.rst there).
  • [n/a] Documentation is sphinx and numpydoc compliant (the docs shouldbuild without error).

@QuLogicQuLogic added this to thev3.6.0 milestoneAug 23, 2022
@@ -436,7 +436,7 @@ def impl(args, regex, min_ver=None, ignore_exit_code=False):
raise ValueError("Unknown executable: {!r}".format(name))


@_api.deprecated("3.6", alternative="Vendor the code")
@_api.deprecated("3.6", alternative="a vendored copy this function")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Suggested change
@_api.deprecated("3.6",alternative="a vendored copy this function")
@_api.deprecated("3.6",alternative="a vendored copyofthis function")

@@ -88,7 +88,7 @@ def wrapped_callable(*args, **kwargs):
return make_cleanup


@_api.deprecated("3.6", alternative="Vendor the existing code "
@_api.deprecated("3.6", alternative="a vendored copy of the existing code "
"of _check_freetype_version.")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Suggested change
"of _check_freetype_version.")
"of _check_freetype_version")

@@ -45,7 +45,7 @@ def tearDownClass(cls):
cls._cm.__exit__(None, None, None)


@_api.deprecated("3.6", alternative="Vendor the existing code, "
@_api.deprecated("3.6", alternative="a vendored copy of the existing code, "
"including the private function _cleanup_cm.")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Suggested change
"including the private function _cleanup_cm.")
"including the private function _cleanup_cm")

@@ -32,7 +32,7 @@ def _cleanup_cm():
plt.close("all")


@_api.deprecated("3.6", alternative="Vendor the existing code, "
@_api.deprecated("3.6", alternative="a vendored copy of the existing code, "
"including the private function _cleanup_cm.")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Suggested change
"including the private function _cleanup_cm.")
"including the private function _cleanup_cm")

Formerly, the deprecation message would say "Use Vendor the codeinstead"; now they say "Use a vendored copy of the code instead", etc.
@QuLogicQuLogicforce-pushed thefix-vendoring-deprecations branch from624f588 to65bbec0CompareAugust 23, 2022 22:53
@oscargusoscargus merged commit1d5221b intomatplotlib:mainAug 24, 2022
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull requestAug 24, 2022
oscargus added a commit that referenced this pull requestAug 24, 2022
…711-on-v3.6.xBackport PR#23711 on branch v3.6.x (Fix deprecation messages for vendoring unused things)
@QuLogicQuLogic deleted the fix-vendoring-deprecations branchAugust 24, 2022 20:59
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@timhoffmtimhoffmtimhoffm left review comments

@tacaswelltacaswelltacaswell approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
v3.6.0
Development

Successfully merging this pull request may close these issues.

4 participants
@QuLogic@tacaswell@timhoffm@oscargus

[8]ページ先頭

©2009-2025 Movatter.jp