mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Add typing for file and settings.
Add diagnostic generator documentation
This commit is contained in:
parent
f49f8b3cb8
commit
d19f1f3e42
4 changed files with 11 additions and 4 deletions
|
|
@ -1,3 +1,4 @@
|
|||
from pathlib import Path
|
||||
from typing import Iterator
|
||||
|
||||
from ..diagnostic import Diagnostic
|
||||
|
|
@ -5,7 +6,7 @@ from .diagnostic_generator import DiagnosticGenerator
|
|||
|
||||
|
||||
class Meshes(DiagnosticGenerator):
|
||||
def __init__(self, file, settings) -> None:
|
||||
def __init__(self, file: Path, settings: dict) -> None:
|
||||
super().__init__(file, settings)
|
||||
self._max_file_size = self._settings.get("diagnostic-mesh-file-size", 1e6)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue