Added type hints to ImageMath by radarhere · Pull Request #7707 · python-pillow/Pillow

@radarhere

@radarhere

hugovk

compiled_code = compile(expression, "<string>", "eval")

def scan(code):
def scan(code) -> None:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What type is code?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've pushed a commit.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code's type is CodeType :D

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>

@radarhere