Skip to content

Commit

Permalink
Added type hints for format and format_description
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Dec 19, 2023
1 parent 67890b2 commit 1f9dafe
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 1f9dafe

Please sign in to comment.