Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime van Kessel <nallath@gmail.com>2019-12-13 17:20:43 +0300
committerJaime van Kessel <nallath@gmail.com>2019-12-13 17:20:43 +0300
commit93ee1115668c3c60aa23f9e492859ceeb0183408 (patch)
tree3ddba09685e3fcc1fe38efabc8cff8c8da9e6eb8 /plugins/SentryLogger
parent028a60318caa7811123976a6ab049c358ec5ef3c (diff)
Add missing typing
Diffstat (limited to 'plugins/SentryLogger')
-rw-r--r--plugins/SentryLogger/SentryLogger.py2
-rw-r--r--plugins/SentryLogger/__init__.py10
2 files changed, 8 insertions, 4 deletions
diff --git a/plugins/SentryLogger/SentryLogger.py b/plugins/SentryLogger/SentryLogger.py
index 0c0730b1dc..9d5bb8a21d 100644
--- a/plugins/SentryLogger/SentryLogger.py
+++ b/plugins/SentryLogger/SentryLogger.py
@@ -40,4 +40,4 @@ class SentryLogger(LogOutput):
elif log_type == "d":
level = "debug"
- return level \ No newline at end of file
+ return level
diff --git a/plugins/SentryLogger/__init__.py b/plugins/SentryLogger/__init__.py
index 6cf92ab624..c464de5fd4 100644
--- a/plugins/SentryLogger/__init__.py
+++ b/plugins/SentryLogger/__init__.py
@@ -1,12 +1,16 @@
# Copyright (c) 2019 Ultimaker B.V.
# Cura is released under the terms of the LGPLv3 or higher.
+from typing import TYPE_CHECKING, Dict, Any
from . import SentryLogger
+if TYPE_CHECKING:
+ from UM.Application import Application
-def getMetaData():
+
+def getMetaData() -> Dict[str, Any]:
return {}
-def register(app):
- return { "logger": SentryLogger.SentryLogger() }
+def register(app: "Application") -> Dict[str, Any]:
+ return {"logger": SentryLogger.SentryLogger()}