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:
parent
ba62bdf867
commit
8e50a90fb2
3 changed files with 8 additions and 6 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue