aboutsummaryrefslogtreecommitdiff
path: root/mu4web/components.py
diff options
context:
space:
mode:
Diffstat (limited to 'mu4web/components.py')
-rw-r--r--mu4web/components.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mu4web/components.py b/mu4web/components.py
index 07ab400..a73ea2f 100644
--- a/mu4web/components.py
+++ b/mu4web/components.py
@@ -132,7 +132,7 @@ def flashed_messages(messages: list[str] | list[tuple[str, str]]) -> HTML:
"""
if not messages:
return []
- if type(messages[0]) == tuple:
+ if isinstance(messages[0], tuple):
messages = cast(list[tuple[str, str]], messages)
return ('ul', {'class': 'flashes'},
*[('li', msg) for (_, msg) in messages])