Skip to content

Commit

Permalink
More quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleFromNVIDIA committed Aug 26, 2024
1 parent 0635d17 commit 807ac93
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/rapids_pre_commit_hooks/alpha_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ def __init__(self, stream) -> None:
super().__init__(stream)
self.document_anchors: list[dict[str, yaml.Node]] = []

def compose_document(self) -> yaml.Node:
def compose_document(self) -> "yaml.Node":
# Drop the DOCUMENT-START event.
self.get_event()

Expand Down
4 changes: 2 additions & 2 deletions src/rapids_pre_commit_hooks/copyright.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def get_target_branch_upstream_commit(
key=lambda commit: commit.committed_datetime,
)

def try_get_ref(remote: git.Remote) -> Optional[git.Reference]:
def try_get_ref(remote: "git.Remote") -> Optional["git.Reference"]:
try:
return remote.refs[target_branch_name]
except IndexError:
Expand Down Expand Up @@ -242,7 +242,7 @@ def get_changed_files(
for filename in filenames
}

changed_files: dict[Union[str, os.PathLike[str]], Optional[git.Blob]] = {
changed_files: dict[Union[str, os.PathLike[str]], Optional["git.Blob"]] = {
f: None for f in repo.untracked_files
}
target_branch_upstream_commit = get_target_branch_upstream_commit(repo, args)
Expand Down

0 comments on commit 807ac93

Please sign in to comment.