Skip to content

Commit

Permalink
Remove unnecessary type ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinThoma committed Aug 19, 2023
1 parent 287d406 commit 901f3f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pypdf/_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -1256,7 +1256,7 @@ def _get_object_from_stream(
assert cast(str, obj_stm["/Type"]) == "/ObjStm"
# /N is the number of indirect objects in the stream
assert idx < obj_stm["/N"]
stream_data = BytesIO(obj_stm.get_data()) # type: ignore
stream_data = BytesIO(obj_stm.get_data())
for i in range(obj_stm["/N"]): # type: ignore
read_non_whitespace(stream_data)
stream_data.seek(-1, 1)
Expand Down

0 comments on commit 901f3f7

Please sign in to comment.