type hinting
This commit is contained in:
parent
c22f1680f7
commit
a0c04c0809
5 changed files with 30 additions and 18 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue