mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-06 05:23:58 -06:00
Add own getInstance for curaApplicaiton
This makes the typing a bit smarter
This commit is contained in:
parent
9940bc8551
commit
e2a387b246
1 changed files with 4 additions and 0 deletions
|
@ -1892,3 +1892,7 @@ class CuraApplication(QtApplication):
|
|||
op.push()
|
||||
from UM.Scene.Selection import Selection
|
||||
Selection.clear()
|
||||
|
||||
@classmethod
|
||||
def getInstance(cls, *args, **kwargs) -> "CuraApplication":
|
||||
return cast(CuraApplication, super().getInstance(**kwargs))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue