diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-08-07 15:25:12 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-08-07 15:25:12 +0200 |
commit | 08f891835557c2e7f92fb350e0dbe511b334faec (patch) | |
tree | e5210dbb98fd763a8f84b78f5d0abb1e2e3df50c /mu4web/components.py | |
parent | Add tests. (diff) | |
download | mu4web-08f891835557c2e7f92fb350e0dbe511b334faec.tar.gz mu4web-08f891835557c2e7f92fb350e0dbe511b334faec.tar.xz |
Fix some linter warnings.
Diffstat (limited to 'mu4web/components.py')
-rw-r--r-- | mu4web/components.py | 2 |
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]) |