Skip to content

Commit

Permalink
Merge pull request #7624 from radarhere/type_hints
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Dec 19, 2023
2 parents 67890b2 + 1f9dafe commit fac2b6e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/PIL/Image.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
# See the README file for information on usage and redistribution.
#

from __future__ import annotations

import atexit
import builtins
import io
Expand Down Expand Up @@ -477,8 +479,8 @@ class Image:
* :py:func:`~PIL.Image.frombytes`
"""

format = None
format_description = None
format: str | None = None
format_description: str | None = None
_close_exclusive_fp_after_loading = True

def __init__(self):
Expand Down

0 comments on commit fac2b6e

Please sign in to comment.