mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 14:44:13 -06:00
Fix typing
This commit is contained in:
parent
f8590be6da
commit
57ec36b7fe
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue