diff options
author | Ian Paschal <ian.paschal@gmail.com> | 2018-09-06 17:57:45 +0300 |
---|---|---|
committer | Ian Paschal <ian.paschal@gmail.com> | 2018-09-06 17:57:45 +0300 |
commit | 4cc1b6ce02a5aa629d3083f97b6a2cc61a14f971 (patch) | |
tree | 53674c37a50217b503bbc72c48cd51ad0cd56893 /cura/PrintJobPreviewImageProvider.py | |
parent | 53d083e232a8edbc4f6ab52f8c8338fd134da31c (diff) |
Add typings and fix code style
Diffstat (limited to 'cura/PrintJobPreviewImageProvider.py')
-rw-r--r-- | cura/PrintJobPreviewImageProvider.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cura/PrintJobPreviewImageProvider.py b/cura/PrintJobPreviewImageProvider.py index d3521bf0af..a8df5aa273 100644 --- a/cura/PrintJobPreviewImageProvider.py +++ b/cura/PrintJobPreviewImageProvider.py @@ -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:] |