From ba6969d691ac70f01dbe8f8e3d78d81cf030ebc5 Mon Sep 17 00:00:00 2001 From: tligui_y Date: Wed, 6 Aug 2025 13:52:02 +0200 Subject: [PATCH] Update slic/utils/typecast.py --- slic/utils/typecast.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/slic/utils/typecast.py b/slic/utils/typecast.py index ad2665018..4dfa45118 100644 --- a/slic/utils/typecast.py +++ b/slic/utils/typecast.py @@ -1,4 +1,3 @@ - def downcast(obj, cls): """Downcast (specialize/narrow) object obj to child type cls""" obj_cls = type(obj) @@ -26,7 +25,7 @@ def _cast(obj, cls): - +''' if __name__ == "__main__": @@ -94,6 +93,6 @@ if __name__ == "__main__": assert ss.methB() == 1 assert not hasattr(ss, "methS") assert not hasattr(ss, "methSS") - +'''