From c869da03bf5a3d322fa1f5aee3ef2dcfadd1df0a Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Sun, 15 Feb 2026 19:21:28 -0800 Subject: [PATCH] [GridRepetition] convert to expected types --- fatamorgana/basic.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fatamorgana/basic.py b/fatamorgana/basic.py index 3c35d5e..70da126 100644 --- a/fatamorgana/basic.py +++ b/fatamorgana/basic.py @@ -1213,6 +1213,10 @@ class GridRepetition: InvalidDataError: if `b_count` and `b_vector` inputs conflict with each other or if `a_count < 1`. """ + a_count = int(a_count) + if b_count is not None: + b_count = int(b_count) + if b_vector is None or b_count is None: if b_vector is not None or b_count is not None: raise InvalidDataError('Repetition has only one of'