Skip to content

Commit

Permalink
paquo.images: fix return type annotation for SimpleURIImageProvider.uri
Browse files Browse the repository at this point in the history
  • Loading branch information
ap-- committed Aug 12, 2020
1 parent 124b8fd commit 146f9a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paquo/images.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def __eq__(self, other): # pragma: no cover
return ImageProvider.compare_uris(self, other)
__hash__ = str.__hash__ # fixme: this is not correct!

def uri(self, image_id: SimpleFileImageId) -> 'URIString':
def uri(self, image_id: SimpleFileImageId) -> Optional['URIString']:
"""accepts a path and returns a URIString"""
if not isinstance(image_id, (Path, str, SimpleURIImageProvider.FilenamePathId)):
raise TypeError("image_id not of correct format") # pragma: no cover
Expand Down

0 comments on commit 146f9a8

Please sign in to comment.