mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 15:13:56 -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 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…
Add table
Add a link
Reference in a new issue