From 38a53c61118a0a2c17917ac50c29ededeea7af76 Mon Sep 17 00:00:00 2001 From: mboussarov Date: Mon, 10 Jun 2024 21:51:51 -0700 Subject: [PATCH] Added __slots__ to the padding transformer Signed-off-by: mboussarov --- numalogic/transforms/_stateless.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/numalogic/transforms/_stateless.py b/numalogic/transforms/_stateless.py index afaa856d..95b73e81 100644 --- a/numalogic/transforms/_stateless.py +++ b/numalogic/transforms/_stateless.py @@ -169,6 +169,15 @@ class FlattenVectorWithPadding(StatelessTransformer): """ + __slots__ = ( + "features", + "flatten_features", + "padding_with", + "padding_features", + "flatten_indexes", + "padding_indexes", + ) + @staticmethod def _feature_indexes(features_all: list[str], features: list[str]) -> list[int]: return [features_all.index(f) for f in features]