The intent was to fix mypy errors in image_analysis/image_fixture.py but I think most of the errors originate from the FixtureImage init function being too generous in how one can instantiate a FixtureImage object.
FixtureImage is only used in one place with one of the classmethods.
There are more things which could be improved, such as most of the functions could be moved out of the class, but I spent enough time on this...
Part of #51
The intent was to fix mypy errors in
image_analysis/image_fixture.py
but I think most of the errors originate from theFixtureImage
init function being too generous in how one can instantiate aFixtureImage
object.FixtureImage
is only used in one place with one of the classmethods.There are more things which could be improved, such as most of the functions could be moved out of the class, but I spent enough time on this...