Skip to content

Commit 7e0ef59

Browse files
committed
run black
1 parent 9c5bf73 commit 7e0ef59

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

amqtt/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ async def reconnect(self, cleansession=None):
244244
"Maximum number of connection attempts reached. Reconnection aborted"
245245
)
246246
raise ConnectException("Too many connection attempts failed") from e
247-
exp = 2 ** nb_attempt
247+
exp = 2**nb_attempt
248248
delay = exp if exp < reconnect_max_interval else reconnect_max_interval
249249
self.logger.debug("Waiting %d second before next attempt" % delay)
250250
await asyncio.sleep(delay, loop=self._loop)

docs/conf.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,6 @@ def setup(app):
306306
# app.add_javascript("custom.js")
307307
app.add_stylesheet("theme_overrides.css")
308308

309-
310309
else:
311310
# Override default css to get a larger width for ReadTheDoc build
312311
html_context = {

tests/plugins/test_plugins.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,13 @@ def _verify_module(module, plugin_module_name):
2929
continue
3030

3131
obj = clazz(_TestContext())
32-
with pytest.raises(AttributeError, match=f"'{name}' object has no attribute '{_INVALID_METHOD}'"):
32+
with pytest.raises(
33+
AttributeError,
34+
match=f"'{name}' object has no attribute '{_INVALID_METHOD}'",
35+
):
3336
getattr(obj, _INVALID_METHOD)
3437
assert hasattr(obj, _INVALID_METHOD) is False
3538

36-
3739
for name, obj in inspect.getmembers(module, inspect.ismodule):
3840
_verify_module(obj, plugin_module_name)
3941

0 commit comments

Comments
 (0)