Update slic/utils/typecast.py
Run CI Tests / test (push) Successful in 1m8s

This commit is contained in:
2025-08-06 13:52:02 +02:00
parent 66dbb81eeb
commit ba6969d691
+2 -3
View File
@@ -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")
'''