From b11d1b2d13cc337b912f1c09ab0c2a1a49e31909 Mon Sep 17 00:00:00 2001 From: Kyle Altendorf Date: Mon, 24 Jun 2024 16:49:50 -0400 Subject: [PATCH] Update sized_bytes.py --- wheel/python/chia_rs/sized_bytes.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/wheel/python/chia_rs/sized_bytes.py b/wheel/python/chia_rs/sized_bytes.py index d83594b33..f68855fbc 100644 --- a/wheel/python/chia_rs/sized_bytes.py +++ b/wheel/python/chia_rs/sized_bytes.py @@ -37,6 +37,7 @@ class bytes480(SizedBytes): zeros: bytes480 -for cls in globals().values(): - if isinstance(cls, type) and cls is not SizedBytes and issubclass(cls, SizedBytes): - cls.zeros = cls(b"\x00" * cls._size) +def _add_zeros(): + for cls in list(globals().values()): + if isinstance(cls, type) and cls is not SizedBytes and issubclass(cls, SizedBytes): + cls.zeros = cls(b"\x00" * cls._size)