Skip to content
This repository has been archived by the owner on Feb 21, 2023. It is now read-only.

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 6, 2023
1 parent 115805d commit ebd4c47
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 7 deletions.
1 change: 0 additions & 1 deletion aioredis/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -1541,7 +1541,6 @@ def __init__(
queue_class: Type[asyncio.Queue] = asyncio.LifoQueue,
**connection_kwargs,
):

self.queue_class = queue_class
self.timeout = timeout
self._connections: List[Connection]
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/getting_started/03_multiexec.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
async def main():
redis = await aioredis.from_url("redis://localhost")
async with redis.pipeline(transaction=True) as pipe:
ok1, ok2 = await (pipe.set("key1", "value1").set("key2", "value2").execute())
ok1, ok2 = await pipe.set("key1", "value1").set("key2", "value2").execute()
assert ok1
assert ok2

Expand Down
1 change: 0 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ def __init__(
help=None,
metavar=None,
):

_option_strings = []
for option_string in option_strings:
_option_strings.append(option_string)
Expand Down
1 change: 0 additions & 1 deletion tests/test_lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,6 @@ class TestLockClassSelection:
def test_lock_class_argument(self, r):
class MyLock:
def __init__(self, *args, **kwargs):

pass

lock = r.lock("foo", lock_class=MyLock)
Expand Down
2 changes: 0 additions & 2 deletions tests/test_pubsub.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ async def test_pattern_subscribe_unsubscribe(self, r):
async def _test_resubscribe_on_reconnection(
self, p, sub_type, unsub_type, sub_func, unsub_func, keys
):

for key in keys:
assert await sub_func(key) is None

Expand Down Expand Up @@ -131,7 +130,6 @@ async def test_resubscribe_to_patterns_on_reconnection(self, r):
async def _test_subscribed_property(
self, p, sub_type, unsub_type, sub_func, unsub_func, keys
):

assert p.subscribed is False
await sub_func(keys[0])
# we're now subscribed even though we haven't processed the
Expand Down
1 change: 0 additions & 1 deletion tests/test_sentinel.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ def client(self, host, port, **kwargs):

@pytest.fixture()
async def cluster(master_ip):

cluster = SentinelTestCluster(ip=master_ip)
saved_Redis = aioredis.sentinel.Redis
aioredis.sentinel.Redis = cluster.client
Expand Down

0 comments on commit ebd4c47

Please sign in to comment.