From 7e43ab026ef6f9f43a59dc4a89056a65bff03a6a Mon Sep 17 00:00:00 2001 From: Jhonathan Abreu Date: Tue, 3 Dec 2024 11:50:47 -0400 Subject: [PATCH] Cleanup --- src/runtime/Types/DynamicClassObject.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/runtime/Types/DynamicClassObject.cs b/src/runtime/Types/DynamicClassObject.cs index 8a09bb85f..cb6fd5650 100644 --- a/src/runtime/Types/DynamicClassObject.cs +++ b/src/runtime/Types/DynamicClassObject.cs @@ -1,7 +1,5 @@ using System; using System.Collections.Generic; -using System.Dynamic; -using System.Reflection; using System.Runtime.CompilerServices; using RuntimeBinder = Microsoft.CSharp.RuntimeBinder; @@ -94,6 +92,7 @@ public static NewReference tp_getattro(BorrowedReference ob, BorrowedReference k // e.g hasattr uses this method to check if the attribute exists. If we throw anything other than AttributeError, // hasattr will throw instead of catching and returning False. Exceptions.SetError(Exceptions.AttributeError, exception.Message); + return default; } }