mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
ruff: Fix UP035 Import from collections.abc, typing instead.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
531b34cb4c
commit
0fa5e7f629
@@ -5,8 +5,9 @@ import signal
|
||||
import time
|
||||
from abc import ABC, abstractmethod
|
||||
from collections import deque
|
||||
from collections.abc import Callable, MutableSequence
|
||||
from types import FrameType
|
||||
from typing import Any, Callable, MutableSequence, TypeVar
|
||||
from typing import Any, TypeVar
|
||||
|
||||
import orjson
|
||||
import sentry_sdk
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
# Documented in https://zulip.readthedocs.io/en/latest/subsystems/queuing.html
|
||||
import logging
|
||||
from typing import Any, Mapping
|
||||
from collections.abc import Mapping
|
||||
from typing import Any
|
||||
|
||||
from typing_extensions import override
|
||||
|
||||
|
||||
@@ -3,8 +3,9 @@ import base64
|
||||
import email
|
||||
import email.policy
|
||||
import logging
|
||||
from collections.abc import Mapping
|
||||
from email.message import EmailMessage
|
||||
from typing import Any, Mapping
|
||||
from typing import Any
|
||||
|
||||
from typing_extensions import override
|
||||
|
||||
|
||||
@@ -2,8 +2,9 @@
|
||||
import copy
|
||||
import logging
|
||||
import socket
|
||||
from collections.abc import Callable
|
||||
from functools import wraps
|
||||
from typing import Any, Callable
|
||||
from typing import Any
|
||||
|
||||
from django.core.mail.backends.base import BaseEmailBackend
|
||||
from typing_extensions import override
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
# Documented in https://zulip.readthedocs.io/en/latest/subsystems/queuing.html
|
||||
import logging
|
||||
import time
|
||||
from collections.abc import Mapping
|
||||
from types import FrameType
|
||||
from typing import Any, Mapping
|
||||
from typing import Any
|
||||
|
||||
from django.db import transaction
|
||||
from typing_extensions import override
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
# Documented in https://zulip.readthedocs.io/en/latest/subsystems/queuing.html
|
||||
import logging
|
||||
from typing import Any, Mapping
|
||||
from collections.abc import Mapping
|
||||
from typing import Any
|
||||
|
||||
from typing_extensions import override
|
||||
from zulip_bots.lib import extract_query_without_mention
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
# Documented in https://zulip.readthedocs.io/en/latest/subsystems/queuing.html
|
||||
import logging
|
||||
import time
|
||||
from typing import Any, Mapping, Sequence
|
||||
from collections.abc import Mapping, Sequence
|
||||
from typing import Any
|
||||
|
||||
import orjson
|
||||
from django.conf import settings
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
# Documented in https://zulip.readthedocs.io/en/latest/subsystems/queuing.html
|
||||
import logging
|
||||
from typing import Any, Mapping
|
||||
from collections.abc import Mapping
|
||||
from typing import Any
|
||||
|
||||
from typing_extensions import override
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
# Documented in https://zulip.readthedocs.io/en/latest/subsystems/queuing.html
|
||||
import logging
|
||||
from typing import Any, Mapping
|
||||
from collections.abc import Mapping
|
||||
from typing import Any
|
||||
|
||||
from typing_extensions import override
|
||||
|
||||
|
||||
Reference in New Issue
Block a user