Explicitly mark arguments as optional

mypy now considers implicitly Optional arguments
to be errors - I have made them now explicitly
Optional, which passes.
This commit is contained in:
Richard Bowman 2023-03-21 15:04:49 +00:00
parent ba62bdf867
commit 8e50a90fb2
3 changed files with 8 additions and 6 deletions

View file

@ -370,7 +370,7 @@ class Microscope:
folder: str = "",
temporary: bool = False,
use_video_port: bool = False,
resize: Tuple[int, int] = None,
resize: Optional[Tuple[int, int]] = None,
bayer: bool = True,
fmt: str = "jpeg",
annotations: Optional[Dict[str, str]] = None,