This is in multiple places, but the uses of types such as Dict cause PyRight with strictTypingMode=True to complain about the use of Unknowns
For example jpegopt from convert_to_path() defines its type as:
But it should be somewhat stricter, as just:
jpegopt: Dict[str, Any] = None,
Equally, for size:
size: Union[Tuple, int] = None,
Would become:
size: Union[Tuple[Optional[int], Optional[int]], int] = None,
I think this should be a fairly simple change to make but wondering whether it's something worth making a PR for – if so I can do that and link it to this issue.
Thanks!
This is in multiple places, but the uses of types such as
Dictcause PyRight withstrictTypingMode=Trueto complain about the use of UnknownsFor example
jpegoptfromconvert_to_path()defines its type as:But it should be somewhat stricter, as just:
Equally, for
size:Would become:
I think this should be a fairly simple change to make but wondering whether it's something worth making a PR for – if so I can do that and link it to this issue.
Thanks!