Skip to content

Commit

Permalink
MAINT: Remove star imports (#865)
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinThoma authored May 8, 2022
1 parent 9a9cfee commit 96711cc
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
15 changes: 14 additions & 1 deletion PyPDF2/_merger.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion PyPDF2/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -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, ())

Expand Down
5 changes: 2 additions & 3 deletions PyPDF2/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand All @@ -48,9 +49,7 @@
PdfReadWarning,
PdfStreamError,
)

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

0 comments on commit 96711cc

Please sign in to comment.