Skip to content

Commit 76bac5e

Browse files
committed
Updated docstring for Compose about seed
1 parent edb6bfa commit 76bac5e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

albumentations/augmentations/crops/transforms.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import math
44
from collections.abc import Sequence
5-
from numbers import Real
65
from typing import Annotated, Any, cast
76

87
import cv2
@@ -1728,7 +1727,7 @@ def _get_pad_value(
17281727
return self.py_random.uniform(a, b)
17291728
return self.py_random.choice(fill)
17301729

1731-
if isinstance(fill, Real):
1730+
if isinstance(fill, (int, float)):
17321731
return fill
17331732

17341733
msg = "fill should be a number or list, or tuple of two numbers."

0 commit comments

Comments
 (0)