minor tweak to conditions and event handling

This commit is contained in:
Brandon Hancock
2024-09-18 15:57:05 -04:00
parent abaf8c4d24
commit aa6fa13262

View File

@@ -111,7 +111,6 @@ def and_(*conditions):
elif isinstance(condition, str):
methods.append(condition)
elif callable(condition):
# Extract the __name__ even if the function is wrapped by a decorator
methods.append(getattr(condition, "__name__", repr(condition)))
else:
raise ValueError("Invalid condition in and_()")