Skip to content

Commit

Permalink
STY: Reorder exported symbols (#2774)
Browse files Browse the repository at this point in the history
Plus tiny change of a comment.
  • Loading branch information
j-t-1 authored Jul 26, 2024
1 parent 1d9d3bc commit a469e0f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
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

0 comments on commit a469e0f

Please sign in to comment.