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
Use jaraco.classes for properties #588
Conversation
Maybe reexport them for the time being for backward compatibility? (I'm tempted to replace "Maybe" with "At least", but I feel that makes me sounds too entitled.) |
I can do that - make it an optional dependency for the time being. |
e110fb2
to
3c38fa4
Compare
Isn't that kinda much to add another dependency just for these two methods? |
Yes and no.
Principles I roughly follow for dependencies:
I think implicit in your question is that adding a dependency is a cost that should be taken seriously. Can you articulate or link to a resource that explains those costs? |
try:
from jaraco.compat import properties # pragma: no-cover
except ImportError:
from . import _properties_compat as properties # pragma: no-cover I think |
Today I was reviewing the implementation of
NonDataProperty
andClassProperty
only to find that there were stale versions of the implementations inkeyring.util.properties
that represent old versions of the original implementations injaraco.classes
.I'm tempted to simply depend on that code. Because it introduces a new dependency, I'm somewhat reluctant to accept the change. I'm putting it here for feedback and consideration.