From a469e0fa876b18a37ca0e427cd00c409e5fd09de Mon Sep 17 00:00:00 2001 From: j-t-1 <120829237+j-t-1@users.noreply.github.com> Date: Fri, 26 Jul 2024 10:44:38 +0100 Subject: [PATCH] STY: Reorder exported symbols (#2774) Plus tiny change of a comment. --- pypdf/annotations/__init__.py | 4 ++-- pypdf/annotations/_base.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pypdf/annotations/__init__.py b/pypdf/annotations/__init__.py index 3ddf98569..208972d62 100644 --- a/pypdf/annotations/__init__.py +++ b/pypdf/annotations/__init__.py @@ -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", ] diff --git a/pypdf/annotations/_base.py b/pypdf/annotations/_base.py index f235acf3a..2aff325aa 100644 --- a/pypdf/annotations/_base.py +++ b/pypdf/annotations/_base.py @@ -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: