mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-13 01:37:51 -06:00
Add typings and fix code style
This commit is contained in:
parent
53d083e232
commit
4cc1b6ce02
9 changed files with 61 additions and 39 deletions
|
@ -10,7 +10,7 @@ class PrintJobPreviewImageProvider(QQuickImageProvider):
|
|||
super().__init__(QQuickImageProvider.Image)
|
||||
|
||||
## Request a new image.
|
||||
def requestImage(self, id, size):
|
||||
def requestImage(self, id: str, size: QSize) -> QImage:
|
||||
# The id will have an uuid and an increment separated by a slash. As we don't care about the value of the
|
||||
# increment, we need to strip that first.
|
||||
uuid = id[id.find("/") + 1:]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue