-
-
Notifications
You must be signed in to change notification settings - Fork 942
Added types to Index submodule #1244
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
@Yobmod Thanks a lot! Do you know how it's possible that somebody I didn't assign can approve changes and do so repeatedly? Is that a GitHub bug? Should I be concerned? Update: Just to be on the safe side, I blocked the user for 30days. Once we know there was no ill-intend and there is no security hole, I am happy to undo this action of course. After checking organization and repository settings I couldn't see how reviewing seemingly random PRs is possible. |
Oh, don't know how that is possible (or who the user is). If it happens again, I can close this one and get it ready for review offline. |
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.
Thanks a lot for yet another fantastic addition of types.
All changes to the logic where based on the type-system recognising that some fields or variables might be None, so I wouldn't expect any issues arising from this.
git/index/base.py
Outdated
""" | ||
:return: | ||
Iterator yielding dict(path : list( tuple( stage, Blob, ...))), being | ||
a dictionary associating a path in the index with a list containing | ||
sorted stage/blob pairs | ||
##### Does it return iterator? or just the Dict? |
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.
It really does look like it returns a dict, and the type system probably agrees.
In these cases it should be fine to fix the documentation, which rightfully is confused about types in a codebase that thus far didn't have any statically declared.
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.
ok, i changed the docstring then
Please let me know if this is ready for merging, the PR appears to be in draft mode still. |
Now it's ready! |
This looks good to me, thanks a lot! |
Added types to Index submodule,
plus change some types in othe files to make them agree