mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 16:37:23 +00:00
ruff: Fix UP006 Use list instead of List for type annotation.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
c2214b3904
commit
e08a24e47f
@@ -1,5 +1,4 @@
|
||||
import re
|
||||
from typing import Dict
|
||||
|
||||
# Warning: If you change this parsing, please test using
|
||||
# zerver/tests/test_decorators.py
|
||||
@@ -13,7 +12,7 @@ pattern = re.compile(
|
||||
)
|
||||
|
||||
|
||||
def parse_user_agent(user_agent: str) -> Dict[str, str]:
|
||||
def parse_user_agent(user_agent: str) -> dict[str, str]:
|
||||
match = pattern.match(user_agent)
|
||||
assert match is not None
|
||||
return match.groupdict()
|
||||
|
||||
Reference in New Issue
Block a user