@@ -95,7 +95,7 @@ def text(
9595 flags : int = 0 ,
9696 ) -> None :
9797 deprecation_with_replacement (
98- "AnnotationBuilder.text" , "pypdf.annotations.Text" , "4 .0.0"
98+ "AnnotationBuilder.text" , "pypdf.annotations.Text" , "5 .0.0"
9999 )
100100
101101 @staticmethod
@@ -111,7 +111,7 @@ def free_text(
111111 background_color : Optional [str ] = "ffffff" ,
112112 ) -> None :
113113 deprecation_with_replacement (
114- "AnnotationBuilder.free_text" , "pypdf.annotations.FreeText" , "4 .0.0"
114+ "AnnotationBuilder.free_text" , "pypdf.annotations.FreeText" , "5 .0.0"
115115 )
116116
117117 @staticmethod
@@ -123,7 +123,7 @@ def popup(
123123 open : bool = False ,
124124 ) -> None :
125125 deprecation_with_replacement (
126- "AnnotationBuilder.popup" , "pypdf.annotations.Popup" , "4 .0.0"
126+ "AnnotationBuilder.popup" , "pypdf.annotations.Popup" , "5 .0.0"
127127 )
128128
129129 @staticmethod
@@ -135,15 +135,15 @@ def line(
135135 title_bar : Optional [str ] = None ,
136136 ) -> None :
137137 deprecation_with_replacement (
138- "AnnotationBuilder.line" , "pypdf.annotations.Line" , "4 .0.0"
138+ "AnnotationBuilder.line" , "pypdf.annotations.Line" , "5 .0.0"
139139 )
140140
141141 @staticmethod
142142 def polyline (
143143 vertices : List [Tuple [float , float ]],
144144 ) -> None :
145145 deprecation_with_replacement (
146- "AnnotationBuilder.polyline" , "pypdf.annotations.PolyLine" , "4 .0.0"
146+ "AnnotationBuilder.polyline" , "pypdf.annotations.PolyLine" , "5 .0.0"
147147 )
148148
149149 @staticmethod
@@ -152,7 +152,7 @@ def rectangle(
152152 interiour_color : Optional [str ] = None ,
153153 ) -> None :
154154 deprecation_with_replacement (
155- "AnnotationBuilder.rectangle" , "pypdf.annotations.Rectangle" , "4 .0.0"
155+ "AnnotationBuilder.rectangle" , "pypdf.annotations.Rectangle" , "5 .0.0"
156156 )
157157
158158 @staticmethod
@@ -164,7 +164,7 @@ def highlight(
164164 printing : bool = False ,
165165 ) -> None :
166166 deprecation_with_replacement (
167- "AnnotationBuilder.highlight" , "pypdf.annotations.Highlight" , "4 .0.0"
167+ "AnnotationBuilder.highlight" , "pypdf.annotations.Highlight" , "5 .0.0"
168168 )
169169
170170 @staticmethod
@@ -173,13 +173,13 @@ def ellipse(
173173 interiour_color : Optional [str ] = None ,
174174 ) -> None :
175175 deprecation_with_replacement (
176- "AnnotationBuilder.ellipse" , "pypdf.annotations.Ellipse" , "4 .0.0"
176+ "AnnotationBuilder.ellipse" , "pypdf.annotations.Ellipse" , "5 .0.0"
177177 )
178178
179179 @staticmethod
180180 def polygon (vertices : List [Tuple [float , float ]]) -> None :
181181 deprecation_with_replacement (
182- "AnnotationBuilder.polygon" , "pypdf.annotations.Polygon" , "4 .0.0"
182+ "AnnotationBuilder.polygon" , "pypdf.annotations.Polygon" , "5 .0.0"
183183 )
184184
185185 from ._fit import DEFAULT_FIT
@@ -193,7 +193,7 @@ def link(
193193 fit : Fit = DEFAULT_FIT ,
194194 ) -> None :
195195 deprecation_with_replacement (
196- "AnnotationBuilder.link" , "pypdf.annotations.Link" , "4 .0.0"
196+ "AnnotationBuilder.link" , "pypdf.annotations.Link" , "5 .0.0"
197197 )
198198
199199
0 commit comments