-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Supply chain risk reduction: remove dependency on library named deprecated
#2386
Conversation
2901de6
to
3592e04
Compare
While this removes the dependency, I don't really see this as necessary. It's less expressive than a decorator - and I'd like to keep that interface. If you'd like to introduce a decorator that provides the same namespace, that's a separate conversation. As a project, it would appear that deprecated has stalled. But, the need to decorate functions, potentially classes, and definitely arguments exists. |
@chayim Thanks for the comments. My reasoning is that pulling in two dependencies ( As for the expressiveness, if you're thinking about e.g. introspecting functions to see whether they're For instance, Django happily just calls |
3592e04
to
f8814da
Compare
Codecov ReportBase: 92.17% // Head: 92.17% // No change to project coverage 👍
Additional details and impacted files@@ Coverage Diff @@
## master #2386 +/- ##
=======================================
Coverage 92.17% 92.17%
=======================================
Files 110 110
Lines 28924 28924
=======================================
Hits 26661 26661
Misses 2263 2263 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
f8814da
to
b9d88e0
Compare
b9d88e0
to
54f6294
Compare
@chayim Have you had a chance to look at my comments above? |
@akx I'm more than happy to reduce any (and frankly all) dependencies. I'd like to hard reduce them in general, and keep things tidy. However, I'd like to maintain deprecation as a decorated interface, rather than an in-function call. The differences may be minor, but I believe it improves readability, which is something we generally need to improve. I'm VERY pro removing the dependency. However, that merge would be contingent on a decorator providing the same functionality. Any chance you're interested in modifying your PR accordingly (pretty please!)? |
6a8e187
to
db0e772
Compare
@chayim Sure, I added a |
deprecated
dependencydeprecated
@akx LGTM! |
No need for an external library just for 5 annotations.
39cc6ff
to
4b0977a
Compare
@dvora-h Sure! Rebased & fixed search. |
No need for an external library just for 5 annotations.
No need for an external library just for 5 annotations.
Pull Request check-list
Please make sure to review and check all of these items:
$ tox
pass with this change (including linting)?Description of change
This PR removes the dependency on the
@deprecated
library in favor of a simple 8-line function.