@@ -61,9 +61,9 @@ class BaseSize(namedtuple("__BaseSize", "width, height")):
6161 Base class namedtuple representing a page size, in point
6262
6363 :param width: The page width
64- :type width: float
64+ :type width: int, float, Decimal or Unit
6565 :param height: The page height
66- :type height: float
66+ :type height: int, float, Decimal or Unit
6767 """
6868
6969 __slots__ : List [str ] = []
@@ -78,7 +78,7 @@ def __new__(cls, width: AnyNumber, height: AnyNumber):
7878 cls ._unit (height ),
7979 )
8080
81- def __str__ (self ):
81+ def __str__ (self ) -> str :
8282 return f"{ self .__class__ .__name__ } (width={ _rounders (self .width , '0' )} , height={ _rounders (self .height , '0' )} )"
8383
8484 @classmethod
@@ -162,9 +162,9 @@ class Size_mm(BaseSize):
162162 representing a pagesize in millimeters.
163163
164164 :param width: The page width
165- :type width: float
165+ :type width: int, float, Decimal or Unit
166166 :param height: The page height
167- :type height: float
167+ :type height: int, float, Decimal or Unit
168168 """
169169
170170 _unit = mm
@@ -176,9 +176,9 @@ class Size_inch(BaseSize):
176176 representing a pagesize in inches.
177177
178178 :param width: The page width
179- :type width: float
179+ :type width: int, float, Decimal or Unit
180180 :param height: The page height
181- :type height: float
181+ :type height: int, float, Decimal or Unit
182182 """
183183
184184 _unit = inch
@@ -190,9 +190,9 @@ class Size_cm(BaseSize):
190190 representing a pagesize in centimeters.
191191
192192 :param width: The page width
193- :type width: float
193+ :type width: int, float, Decimal or Unit
194194 :param height: The page height
195- :type height: float
195+ :type height: int, float, Decimal or Unit
196196 """
197197
198198 _unit = cm
@@ -204,9 +204,9 @@ class Size_um(BaseSize):
204204 representing a pagesize in micrometers.
205205
206206 :param width: The page width
207- :type width: float
207+ :type width: int, float, Decimal or Unit
208208 :param height: The page height
209- :type height: float
209+ :type height: int, float, Decimal or Unit
210210 """
211211
212212 _unit = um
@@ -218,9 +218,9 @@ class Size_pica(BaseSize):
218218 representing a pagesize in pica.
219219
220220 :param width: The page width
221- :type width: float
221+ :type width: int, float, Decimal or Unit
222222 :param height: The page height
223- :type height: float
223+ :type height: int, float, Decimal or Unit
224224 """
225225
226226 _unit = pica
@@ -232,9 +232,9 @@ class Size_didot(BaseSize):
232232 representing a pagesize in didots / French Points.
233233
234234 :param width: The page width
235- :type width: float
235+ :type width: int, float, Decimal or Unit
236236 :param height: The page height
237- :type height: float
237+ :type height: int, float, Decimal or Unit
238238 """
239239
240240 _unit = didot
@@ -246,9 +246,9 @@ class Size_cicero(BaseSize):
246246 representing a pagesize in ciceros.
247247
248248 :param width: The page width
249- :type width: float
249+ :type width: int, float, Decimal or Unit
250250 :param height: The page height
251- :type height: float
251+ :type height: int, float, Decimal or Unit
252252 """
253253
254254 _unit = cicero
@@ -260,9 +260,9 @@ class Size_new_didot(BaseSize):
260260 representing a pagesize in new didots.
261261
262262 :param width: The page width
263- :type width: float
263+ :type width: int, float, Decimal or Unit
264264 :param height: The page height
265- :type height: float
265+ :type height: int, float, Decimal or Unit
266266 """
267267
268268 _unit = new_didot
@@ -274,9 +274,9 @@ class Size_new_cicero(BaseSize):
274274 representing a pagesize in ciceros.
275275
276276 :param width: The page width
277- :type width: float
277+ :type width: int, float, Decimal or Unit
278278 :param height: The page height
279- :type height: float
279+ :type height: int, float, Decimal or Unit
280280 """
281281
282282 _unit = new_cicero
@@ -288,9 +288,9 @@ class Size_scaled_point(BaseSize):
288288 representing a pagesize in scaled points.
289289
290290 :param width: The page width
291- :type width: float
291+ :type width: int, float, Decimal or Unit
292292 :param height: The page height
293- :type height: float
293+ :type height: int, float, Decimal or Unit
294294 """
295295
296296 _unit = scaled_point
@@ -302,9 +302,9 @@ class PageSize(BaseSize):
302302 representing a pagesize in point.
303303
304304 :param width: The page width
305- :type width: float
305+ :type width: int, float, Decimal or Unit
306306 :param height: The page height
307- :type height: float
307+ :type height: int, float, Decimal or Unit
308308
309309 The pagesize can be converted to other units using the properties below.
310310 """
0 commit comments