ruff: Fix UP006 Use list instead of List for type annotation.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2024-07-11 17:30:17 -07:00
committed by Tim Abbott
parent c2214b3904
commit e08a24e47f
457 changed files with 3588 additions and 3857 deletions

View File

@@ -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()