Skip to content

Commit

Permalink
MAINT: Fix/update version of deprecation_with_replacement (#2861)
Browse files Browse the repository at this point in the history
  • Loading branch information
j-t-1 authored Oct 8, 2024
1 parent a7d5c8d commit e14b991
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions pypdf/generic/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -135,15 +135,15 @@ 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
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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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"
)


Expand Down

0 comments on commit e14b991

Please sign in to comment.