-
Notifications
You must be signed in to change notification settings - Fork 316
Create parameter deprecation annotation #1642
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| if uni != "DEPRECATED": | ||
| warnings.warn( | ||
| ( | ||
| '"uni" parameter is deprecated since v2.5.1, ' |
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.
By introducing deprecated_parameter(), we lose the information of the deprecation version.
Could we maybe preserve it by passing it to deprecated_parameter()?
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.
A couple of questions:
- what is the purpose/motivation for this change?
- what is the impact of this change on the
pdoc-generated API documentation?
I was reviewing the changes to prepare for the next release, and we had 3 new parameters added to The If you disagree with the change or prefer to postpone it, I have no objections and we can only add the |
OK. First I thought: "That's a good thing, it would be nice to stop displaying old deprecated parameters in our documention." But then I wonder: what about recently deprecated parameters? I'm not against this change, we should just carefully consider its impact 🙂 Should we consider using this new |
My thought was to use Step 1: Mark the parameter as |
3b93baa to
51b3a71
Compare
Sounds good 👍 🙂 Would you mind adding, as part of this PR, a short paragraph to https://py-pdf.github.io/fpdf2/Development.html named |
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.
Perfect, thank you @andersonhc 👍
This PR creates a new
deprecated_parameter(list_of_parameters)annotationChecklist:
A unit test is covering the code added / modified by this PR
In case of a new feature, docstrings have been added, with also some documentation in the
docs/folderA mention of the change is present in
CHANGELOG.mdThis PR is ready to be merged
By submitting this pull request, I confirm that my contribution is made under the terms of the GNU LGPL 3.0 license.