Skip to content

Allow Repo.create_head's commit arg to be a SymbolicReference #1419

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

Merged
merged 1 commit into from
Apr 1, 2022

Conversation

DMRobertson
Copy link
Contributor

@DMRobertson DMRobertson commented Apr 1, 2022

This propagates the type of Head.create's reference argument. That create function is inherited from SymbolicReference.

Mypy doesn't pass on my machine, but as far as I can see it reports no new errors compared to the CI runs on the main branch.

This matches the signature from `Head.create`.
@DMRobertson DMRobertson marked this pull request as ready for review April 1, 2022 14:47
@DMRobertson DMRobertson changed the title Allow repo.create_head's commit arg to be a SymbolicReference Allow Repo.create_head's commit arg to be a SymbolicReference Apr 1, 2022
@Byron Byron added this to the v3.1.28 - Bugfixes milestone Apr 1, 2022
@Byron
Copy link
Member

Byron commented Apr 1, 2022

Thank you, that seems like a great quality of life improvement for those using mypi.

@Byron Byron merged commit 0b33576 into gitpython-developers:main Apr 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants