-
-
Notifications
You must be signed in to change notification settings - Fork 907
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
Document string types used by GitPython #312
Comments
With the introduction of Python3 support, I believe all strings which are text became Documenting the types might help those who read documentation, all others will most certainly make things work by trial and error. As python is dynamically typed and string/text handling is inherently difficult in this ecosystem, I feel like I am fighting windmills at best. Considering the issue was first discovered by you, I'd be glad if you could add the documentation that would help people in a similar situation, and would be glad to merge any PR that make improvements in that matter. |
Well, if you guarantee that even undocumented features (how you define a feature then?) won't change until GitPython 2.0 then there is really no reason to document it. Otherwise, the documentation provides users the definition of the features that are guaranteed to be compatible until next major release of GitPython. |
Great to hear. From my point of view, I don't think there will ever be a version 2.0 of GitPython, and as Pypi locked me out by simply not maintaining the oauth-based authentication mode, I don't think there will be an additional patch release either. Thus it's very safe to assume that v1.0.1 on Pypi is the definitive and last release, whereas the master branch on GitHub may contain some fixes that interested parties can install using |
:-( Are you saying that GitPython is dead? :-( I find it much better than pygit2! |
I will keep it maintained, but there will be no new features unless these are provided by interested parties via PRs. |
A new release was just made to pypi 😁 (see #298) ! |
Probably It's time to drop python 2 support? I think there are some places that aren't compatible with python 2 right now anyway (test didn't catch them). If python 2 support is dropped, then this issue can be closed or it still needs documentation? (Or maybe type annotations?) |
I noticed that starting with GitPython 0.3.4 hexadecimal SHAs are no longer
str
s butunicode
s. Since the expected type is not documented anywhere (assuming that changelog is not a documentation), users have to guess. A wrong guess may lead to errors in programs. E.g. GitPython 0.3.4 + Python 2.7:...this used to work before GitPython 0.3.4. This change also complicated writing programs that needs to be compatible with both GitPython < 0.3.4 and GitPython >= 0.3.4.
The text was updated successfully, but these errors were encountered: