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