mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Add missing typing
This commit is contained in:
parent
028a60318c
commit
93ee111566
2 changed files with 8 additions and 4 deletions
|
@ -40,4 +40,4 @@ class SentryLogger(LogOutput):
|
|||
elif log_type == "d":
|
||||
level = "debug"
|
||||
|
||||
return level
|
||||
return level
|
||||
|
|
|
@ -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()}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue