Skip to content

Hopefully fixes Orderedict error #1301

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

Closed
wants to merge 16 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix more missing types in Symbolic.py
  • Loading branch information
Yobmod committed Jul 28, 2021
commit 07d71e57c422e8df943fe14f5e2a1b4856d5077c
6 changes: 3 additions & 3 deletions git/refs/symbolic.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,11 +358,11 @@ def set_reference(self, ref, logmsg=None):
return self

# aliased reference
reference: Union[Commit_ish, 'Reference'] = property( # type: ignore
reference: Union[Commit_ish, 'Head', 'Reference'] = property( # type: ignore
_get_reference, set_reference, doc="Returns the Reference we point to")
ref = reference

def is_valid(self):
def is_valid(self) -> bool:
"""
:return:
True if the reference is valid, hence it can be read and points to
Expand Down Expand Up @@ -531,7 +531,7 @@ def _create(cls, repo, path, resolve, reference, force, logmsg=None):
return ref

@classmethod
def create(cls, repo: 'Repo', path: PathLike, reference: Union[Commit_ish, str] = 'HEAD',
def create(cls, repo: 'Repo', path: PathLike, reference: Union[Commit_ish, str] = 'SymbolicReference',
logmsg: Union[str, None] = None, force: bool = False, **kwargs: Any):
"""Create a new symbolic reference, hence a reference pointing , to another reference.

Expand Down