Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove star imports #865

Merged
merged 1 commit into from
May 8, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion PyPDF2/_merger.py
Original file line number Diff line number Diff line change
@@ -32,7 +32,20 @@
from PyPDF2._reader import PdfFileReader
from PyPDF2._writer import PdfFileWriter
from PyPDF2.constants import PagesAttributes as PA
from PyPDF2.generic import *
from PyPDF2.generic import (
ArrayObject,
Bookmark,
Destination,
DictionaryObject,
FloatObject,
IndirectObject,
NameObject,
NullObject,
NumberObject,
TextStringObject,
TreeObject,
createStringObject,
)
from PyPDF2.pagerange import PageRange, PageRangeSpec
from PyPDF2.types import (
BookmarkTypes,
2 changes: 1 addition & 1 deletion PyPDF2/filters.py
Original file line number Diff line number Diff line change
@@ -509,7 +509,7 @@ def decode(


def decodeStreamData(stream: Any) -> Union[str, bytes]: # utils.StreamObject
from .generic import NameObject
from PyPDF2.generic import NameObject

filters = stream.get(SA.FILTER, ())

5 changes: 2 additions & 3 deletions PyPDF2/generic.py
Original file line number Diff line number Diff line change
@@ -40,6 +40,7 @@
from io import BytesIO
from typing import Any, Dict, Iterable, List, Optional, Tuple, Union

from PyPDF2 import utils
from PyPDF2.constants import FilterTypes as FT
from PyPDF2.constants import StreamAttributes as SA
from PyPDF2.errors import (
@@ -48,9 +49,7 @@
PdfReadWarning,
PdfStreamError,
)

from . import utils
from .utils import (
from PyPDF2.utils import (
RC4_encrypt,
StreamType,
b_,