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

STY: Reorder exported symbols #108

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions pypdf/annotations/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,16 @@
# Export abstract base classes so that they are shown in the docs
"AnnotationDictionary",
"MarkupAnnotation",
# markup annotations
# Markup annotations
"Ellipse",
"FreeText",
"Highlight",
"Line",
"Link",
"Polygon",
"PolyLine",
"Rectangle",
"Text",
# Non-markup annotations
"Link",
"Popup",
]
6 changes: 3 additions & 3 deletions pypdf/annotations/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ def __init__(self) -> None:

# "rect" should not be added here as PolyLine can automatically set it
self[NameObject("/Type")] = NameObject("/Annot")
# The flags was NOT added to the constructor on purpose: We expect that
# most users don't want to change the default. If they want, they
# can use the property. The default is 0.
# The flags were NOT added to the constructor on purpose: We expect that
# most users don't want to change the default. If they do, they
# can use the property. The default is 0.

@property
def flags(self) -> AnnotationFlag:
Expand Down