type hinting

This commit is contained in:
Huy Pham 2020-01-14 14:02:37 -08:00
parent c22f1680f7
commit a0c04c0809
5 changed files with 30 additions and 18 deletions

View file

@ -22,7 +22,7 @@ class Images:
cls.images[image.stem] = str(image)
@classmethod
def get(cls, image_enum, width: int, height: int = None):
def get(cls, image_enum: Enum, width: int, height: int = None):
file_path = cls.images[image_enum.value]
return cls.create(file_path, width, height)