Skip to content

Commit

Permalink
fixup! Replace io.BytesIO in type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Jan 22, 2024
1 parent 3782a35 commit 6ea72cd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/PIL/MpegImagePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,16 @@
#
from __future__ import annotations

from io import BytesIO

from . import Image, ImageFile
from ._binary import i8
from ._typing import SupportsRead

#
# Bitstream parser


class BitStream:
def __init__(self, fp: BytesIO) -> None:
def __init__(self, fp: SupportsRead[bytes]) -> None:
self.fp = fp
self.bits = 0
self.bitbuffer = 0
Expand Down

0 comments on commit 6ea72cd

Please sign in to comment.