mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 00:36:03 +08:00
Fix typing
This commit is contained in:
parent
f8590be6da
commit
57ec36b7fe
@ -1,5 +1,5 @@
|
|||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Optional, List
|
from typing import Optional, List, Dict, Any
|
||||||
|
|
||||||
from .replacement import Replacement
|
from .replacement import Replacement
|
||||||
|
|
||||||
@ -22,7 +22,7 @@ class Diagnostic:
|
|||||||
self.level = level
|
self.level = level
|
||||||
self.replacements = replacements
|
self.replacements = replacements
|
||||||
|
|
||||||
def toDict(self) -> Dict[str, Any[str, int, List[Replacements]]]:
|
def toDict(self) -> Dict[str, Any]:
|
||||||
return {"DiagnosticName": self.diagnostic_name,
|
return {"DiagnosticName": self.diagnostic_name,
|
||||||
"DiagnosticMessage": {
|
"DiagnosticMessage": {
|
||||||
"Message": self.message,
|
"Message": self.message,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user