You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the typing for writer parameter of SaveImage is Union[image_writer.ImageWriter, str, None]. But it is supposed to be some class, thus the image_writer.ImageWriter part in the Union should be Type[image_writer.ImageWriter] where Type is from typing module.
I can make a simple fix and submit a PR. Maybe we could check if there's any similar issue in other parts of the code base.
The text was updated successfully, but these errors were encountered:
Currently, the typing for
writer
parameter ofSaveImage
isUnion[image_writer.ImageWriter, str, None]
. But it is supposed to be some class, thus theimage_writer.ImageWriter
part in the Union should beType[image_writer.ImageWriter]
whereType
is fromtyping
module.I can make a simple fix and submit a PR. Maybe we could check if there's any similar issue in other parts of the code base.
The text was updated successfully, but these errors were encountered: