From e14b9918c76736990b3cbe9ae48d34a64367dbd8 Mon Sep 17 00:00:00 2001 From: j-t-1 <120829237+j-t-1@users.noreply.github.com> Date: Tue, 8 Oct 2024 18:18:45 +0100 Subject: [PATCH] MAINT: Fix/update version of deprecation_with_replacement (#2861) --- pypdf/generic/__init__.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/pypdf/generic/__init__.py b/pypdf/generic/__init__.py index d9b0ea488..072af6eca 100644 --- a/pypdf/generic/__init__.py +++ b/pypdf/generic/__init__.py @@ -95,7 +95,7 @@ def text( flags: int = 0, ) -> None: deprecation_with_replacement( - "AnnotationBuilder.text", "pypdf.annotations.Text", "4.0.0" + "AnnotationBuilder.text", "pypdf.annotations.Text", "5.0.0" ) @staticmethod @@ -111,7 +111,7 @@ def free_text( background_color: Optional[str] = "ffffff", ) -> None: deprecation_with_replacement( - "AnnotationBuilder.free_text", "pypdf.annotations.FreeText", "4.0.0" + "AnnotationBuilder.free_text", "pypdf.annotations.FreeText", "5.0.0" ) @staticmethod @@ -123,7 +123,7 @@ def popup( open: bool = False, ) -> None: deprecation_with_replacement( - "AnnotationBuilder.popup", "pypdf.annotations.Popup", "4.0.0" + "AnnotationBuilder.popup", "pypdf.annotations.Popup", "5.0.0" ) @staticmethod @@ -135,7 +135,7 @@ def line( title_bar: Optional[str] = None, ) -> None: deprecation_with_replacement( - "AnnotationBuilder.line", "pypdf.annotations.Line", "4.0.0" + "AnnotationBuilder.line", "pypdf.annotations.Line", "5.0.0" ) @staticmethod @@ -143,7 +143,7 @@ def polyline( vertices: List[Tuple[float, float]], ) -> None: deprecation_with_replacement( - "AnnotationBuilder.polyline", "pypdf.annotations.PolyLine", "4.0.0" + "AnnotationBuilder.polyline", "pypdf.annotations.PolyLine", "5.0.0" ) @staticmethod @@ -152,7 +152,7 @@ def rectangle( interiour_color: Optional[str] = None, ) -> None: deprecation_with_replacement( - "AnnotationBuilder.rectangle", "pypdf.annotations.Rectangle", "4.0.0" + "AnnotationBuilder.rectangle", "pypdf.annotations.Rectangle", "5.0.0" ) @staticmethod @@ -164,7 +164,7 @@ def highlight( printing: bool = False, ) -> None: deprecation_with_replacement( - "AnnotationBuilder.highlight", "pypdf.annotations.Highlight", "4.0.0" + "AnnotationBuilder.highlight", "pypdf.annotations.Highlight", "5.0.0" ) @staticmethod @@ -173,13 +173,13 @@ def ellipse( interiour_color: Optional[str] = None, ) -> None: deprecation_with_replacement( - "AnnotationBuilder.ellipse", "pypdf.annotations.Ellipse", "4.0.0" + "AnnotationBuilder.ellipse", "pypdf.annotations.Ellipse", "5.0.0" ) @staticmethod def polygon(vertices: List[Tuple[float, float]]) -> None: deprecation_with_replacement( - "AnnotationBuilder.polygon", "pypdf.annotations.Polygon", "4.0.0" + "AnnotationBuilder.polygon", "pypdf.annotations.Polygon", "5.0.0" ) from ._fit import DEFAULT_FIT @@ -193,7 +193,7 @@ def link( fit: Fit = DEFAULT_FIT, ) -> None: deprecation_with_replacement( - "AnnotationBuilder.link", "pypdf.annotations.Link", "4.0.0" + "AnnotationBuilder.link", "pypdf.annotations.Link", "5.0.0" )