You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
) # checks if the attribute is callable (a method or function).
709
709
andnotfunc.startswith(
710
-
"__"
711
-
) # filters out special (dunder) methods like init, str, etc. — these are usually built-in functions of an object that you might not need to use directly.
710
+
"_"
711
+
) # filters out internal methods (starting with _) and special (dunder) methods.
712
712
andnotinspect.isclass(
713
713
getattr(tool, func)
714
714
) # ensures that the callable is not a class itself, just a method or function.
0 commit comments