-
Notifications
You must be signed in to change notification settings - Fork 3.6k
fix deprecation wrapper & tests #6553
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
|
Hello @Borda! Thanks for updating this PR. There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2021-03-16 23:59:10 UTC |
Codecov Report
@@ Coverage Diff @@
## master #6553 +/- ##
=======================================
- Coverage 94% 92% -2%
=======================================
Files 167 167
Lines 11166 11168 +2
=======================================
- Hits 10538 10272 -266
- Misses 628 896 +268 |
Co-authored-by: Carlos Mocholí <[email protected]>
tchaton
left a comment
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.
LGTM !
|
|
||
|
|
||
| def deprecated(target: Callable, ver_deprecate: str = "", ver_remove: str = "") -> Callable: | ||
| def deprecated(target: Callable, ver_deprecate: Optional[str] = "", ver_remove: Optional[str] = "") -> Callable: |
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.
| def deprecated(target: Callable, ver_deprecate: Optional[str] = "", ver_remove: Optional[str] = "") -> Callable: | |
| def deprecated(target: Callable, ver_deprecate: str = "", ver_remove: str = "") -> Callable: |
Optional[...] references to Union[..., None]. Here, the default is "".
What does this PR do?
the past version did not honor base default values and was not able to reset it...
Before submitting
PR review
Anyone in the community is free to review the PR once the tests have passed.
Before you start reviewing make sure you have read Review guidelines. In short, see the following bullet-list:
Did you have fun?
Make sure you had fun coding 🙃