From 203260bf5ca4f2214ff7bd2d57c91ff259938e5d Mon Sep 17 00:00:00 2001 From: Egor Blagov Date: Sun, 25 Dec 2022 22:07:09 +0400 Subject: [PATCH] Remove numpy.int and numpy.float These aliases are deprecated in numpy, can be ignored, since it's the same as regular int or float --- pygad.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pygad.py b/pygad.py index 4b1e291..7fd05f5 100644 --- a/pygad.py +++ b/pygad.py @@ -8,8 +8,8 @@ class GA: - supported_int_types = [int, numpy.int, numpy.int8, numpy.int16, numpy.int32, numpy.int64, numpy.uint, numpy.uint8, numpy.uint16, numpy.uint32, numpy.uint64] - supported_float_types = [float, numpy.float, numpy.float16, numpy.float32, numpy.float64] + supported_int_types = [int, numpy.int8, numpy.int16, numpy.int32, numpy.int64, numpy.uint, numpy.uint8, numpy.uint16, numpy.uint32, numpy.uint64] + supported_float_types = [float, numpy.float16, numpy.float32, numpy.float64] supported_int_float_types = supported_int_types + supported_float_types def __init__(self,