mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +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
@@ -2,7 +2,7 @@ import glob
|
||||
import logging
|
||||
import os
|
||||
from email.headerregistry import Address
|
||||
from typing import Any, Dict, List, Optional
|
||||
from typing import Any, Optional
|
||||
|
||||
from django.conf import settings
|
||||
|
||||
@@ -14,7 +14,7 @@ LDAP_USER_ACCOUNT_CONTROL_NORMAL = "512"
|
||||
LDAP_USER_ACCOUNT_CONTROL_DISABLED = "514"
|
||||
|
||||
|
||||
def generate_dev_ldap_dir(mode: str, num_users: int = 8) -> Dict[str, Dict[str, Any]]:
|
||||
def generate_dev_ldap_dir(mode: str, num_users: int = 8) -> dict[str, dict[str, Any]]:
|
||||
mode = mode.lower()
|
||||
ldap_data = []
|
||||
for i in range(1, num_users + 1):
|
||||
@@ -60,7 +60,7 @@ def generate_dev_ldap_dir(mode: str, num_users: int = 8) -> Dict[str, Dict[str,
|
||||
|
||||
|
||||
def init_fakeldap(
|
||||
directory: Optional[Dict[str, Dict[str, List[str]]]] = None,
|
||||
directory: Optional[dict[str, dict[str, list[str]]]] = None,
|
||||
) -> None: # nocoverage
|
||||
# We only use this in development. Importing mock inside
|
||||
# this function is an import time optimization, which
|
||||
|
||||
Reference in New Issue
Block a user