Skip to content

Commit

Permalink
Add return type annotation for the new image-to-schema method
Browse files Browse the repository at this point in the history
  • Loading branch information
gruuya committed May 30, 2022
1 parent 932cc0e commit 7016893
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion splitgraph/core/image.py
Expand Up @@ -70,7 +70,7 @@ def __eq__(self, other: object) -> bool:
return NotImplemented
return self.image_hash == other.image_hash and self.repository == other.repository

def to_schema(self):
def to_schema(self) -> str:
"""Schema reference for the given image."""
return self.repository.to_schema() + ":" + self.image_hash

Expand Down

0 comments on commit 7016893

Please sign in to comment.