ruff: Fix UP035 Import from collections.abc, typing instead.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2024-07-11 17:30:25 -07:00
committed by Tim Abbott
parent 531b34cb4c
commit 0fa5e7f629
240 changed files with 460 additions and 332 deletions

View File

@@ -4,7 +4,7 @@ import hashlib
import os
import subprocess
import sys
from typing import Iterable
from collections.abc import Iterable
def expand_reqs_helper(fpath: str) -> list[str]:

View File

@@ -15,8 +15,9 @@ import subprocess
import sys
import time
import uuid
from collections.abc import Sequence
from datetime import datetime, timedelta
from typing import IO, Any, Literal, Sequence, overload
from typing import IO, Any, Literal, overload
from urllib.parse import SplitResult
import zoneinfo

View File

@@ -10,7 +10,8 @@ import signal
import sys
from datetime import date, datetime, timedelta, timezone
from enum import Enum, auto
from typing import Match, TextIO
from re import Match
from typing import TextIO
ZULIP_PATH = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.append(ZULIP_PATH)