Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.

Commit 2116ad8

Browse files
committed
Add pylint import-error disable for collections.abc
Workaround for pylint-dev/pylint#10112
1 parent b62415a commit 2116ad8

23 files changed

+23
-23
lines changed

baseplate/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import logging
22
import os
33
import random
4-
from collections.abc import Iterator
4+
from collections.abc import Iterator # pylint: disable=import-error
55
from contextlib import contextmanager
66
from types import TracebackType
77
from typing import Any, Callable, NamedTuple, Optional

baseplate/clients/cassandra.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import logging
22
import time
3-
from collections.abc import Mapping, Sequence
3+
from collections.abc import Mapping, Sequence # pylint: disable=import-error
44
from threading import Event
55
from typing import (
66
TYPE_CHECKING,

baseplate/clients/memcache/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from collections.abc import Iterable, Sequence
1+
from collections.abc import Iterable, Sequence # pylint: disable=import-error
22
from time import perf_counter
33
from typing import Any, Callable, Optional, Union
44

baseplate/clients/sqlalchemy.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import re
44
import typing
5-
from collections.abc import Sequence
5+
from collections.abc import Sequence # pylint: disable=import-error
66
from time import perf_counter
77
from typing import Any, Optional, Union
88

baseplate/clients/thrift.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import sys
66
import time
77
from collections import OrderedDict
8-
from collections.abc import Iterator
8+
from collections.abc import Iterator # pylint: disable=import-error
99
from math import ceil
1010
from typing import Any, Callable, Optional
1111

baseplate/frameworks/pyramid/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import logging
33
import sys
44
import time
5-
from collections.abc import Iterable, Iterator, Mapping
5+
from collections.abc import Iterable, Iterator, Mapping # pylint: disable=import-error
66
from typing import Any, Callable, Optional
77

88
import pyramid.events

baseplate/frameworks/queue_consumer/kafka.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import queue
44
import socket
55
import time
6-
from collections.abc import Sequence
6+
from collections.abc import Sequence # pylint: disable=import-error
77
from typing import TYPE_CHECKING, Any, Callable, NamedTuple, Optional
88

99
import confluent_kafka

baseplate/frameworks/queue_consumer/kombu.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import queue
33
import socket
44
import time
5-
from collections.abc import Sequence
5+
from collections.abc import Sequence # pylint: disable=import-error
66
from enum import Enum
77
from typing import TYPE_CHECKING, Any, Callable, NamedTuple, Optional
88

baseplate/frameworks/thrift/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import random
33
import sys
44
import time
5-
from collections.abc import Iterator, Mapping
5+
from collections.abc import Iterator, Mapping # pylint: disable=import-error
66
from contextlib import contextmanager
77
from logging import Logger
88
from typing import Any, Callable, Optional

baseplate/lib/_requests.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import socket
88
import urllib.parse
9-
from collections.abc import Mapping
9+
from collections.abc import Mapping # pylint: disable=import-error
1010
from typing import Optional
1111

1212
import requests.adapters

baseplate/lib/config.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
import pwd
9494
import re
9595
import socket
96-
from collections.abc import Sequence
96+
from collections.abc import Sequence # pylint: disable=import-error
9797
from typing import (
9898
IO,
9999
Any,

baseplate/lib/propagator_redditb3_http.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import logging
2-
from collections.abc import Iterable
2+
from collections.abc import Iterable # pylint: disable=import-error
33
from re import compile as re_compile
44
from typing import Any, Optional
55

baseplate/lib/propagator_redditb3_thrift.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import logging
2-
from collections.abc import Iterable
2+
from collections.abc import Iterable # pylint: disable=import-error
33
from re import compile as re_compile
44
from typing import Any, Optional
55

baseplate/lib/random.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import bisect
44
import random
55
import typing
6-
from collections.abc import Iterable
6+
from collections.abc import Iterable # pylint: disable=import-error
77
from typing import Callable, Generic, Optional, TypeVar
88

99
T = TypeVar("T")

baseplate/lib/retry.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""Policies for retrying an operation safely."""
22

33
import time
4-
from collections.abc import Iterator
4+
from collections.abc import Iterator # pylint: disable=import-error
55
from typing import Optional
66

77

baseplate/lib/secrets.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import json
66
import logging
77
import os
8-
from collections.abc import Iterator
8+
from collections.abc import Iterator # pylint: disable=import-error
99
from pathlib import Path
1010
from typing import Any, NamedTuple, Optional, Protocol
1111

baseplate/lib/service_discovery.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"""
2020

2121
import json
22-
from collections.abc import Sequence
22+
from collections.abc import Sequence # pylint: disable=import-error
2323
from typing import IO, NamedTuple, Optional
2424

2525
from baseplate.lib.config import Endpoint, EndpointConfiguration

baseplate/lib/thrift_pool.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import queue
2121
import socket
2222
import time
23-
from collections.abc import Generator
23+
from collections.abc import Generator # pylint: disable=import-error
2424
from typing import TYPE_CHECKING, Any, Optional
2525

2626
from thrift.protocol import THeaderProtocol

baseplate/lib/tracing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from collections.abc import Callable, Sequence
1+
from collections.abc import Callable, Sequence # pylint: disable=import-error
22
from typing import Any, Optional, Protocol
33

44
import gevent.pool

baseplate/server/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import time
2323
import traceback
2424
import warnings
25-
from collections.abc import Mapping, MutableMapping, Sequence
25+
from collections.abc import Mapping, MutableMapping, Sequence # pylint: disable=import-error
2626
from dataclasses import dataclass
2727
from datetime import datetime
2828
from enum import Enum

baseplate/server/prometheus.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import logging
1616
import os
1717
import sys
18-
from collections.abc import Iterable
18+
from collections.abc import Iterable # pylint: disable=import-error
1919
from typing import TYPE_CHECKING
2020

2121
from gevent.pywsgi import LoggingLogAdapter, WSGIServer

baseplate/server/queue_consumer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import signal
99
import socket
1010
import uuid
11-
from collections.abc import Sequence
11+
from collections.abc import Sequence # pylint: disable=import-error
1212
from threading import Thread
1313
from typing import TYPE_CHECKING, Any, Callable
1414

baseplate/server/reloader.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import sys
1313
import threading
1414
import time
15-
from collections.abc import Iterator, Sequence
15+
from collections.abc import Iterator, Sequence # pylint: disable=import-error
1616
from typing import NoReturn
1717

1818
logger = logging.getLogger(__name__)

0 commit comments

Comments
 (0)