Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 9bb2eac

Browse files
Bump black from 22.12.0 to 23.1.0 (#15103)
1 parent 4ed08ff commit 9bb2eac

File tree

117 files changed

+108
-218
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+108
-218
lines changed

changelog.d/15103.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Bump black from 22.12.0 to 23.1.0.

poetry.lock

Lines changed: 28 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

stubs/sortedcontainers/sortedlist.pyi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ _Repr = Callable[[], str]
2929
def recursive_repr(fillvalue: str = ...) -> Callable[[_Repr], _Repr]: ...
3030

3131
class SortedList(MutableSequence[_T]):
32-
3332
DEFAULT_LOAD_FACTOR: int = ...
3433
def __init__(
3534
self,

synapse/_scripts/register_new_matrix_user.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ def request_registration(
4747
_print: Callable[[str], None] = print,
4848
exit: Callable[[int], None] = sys.exit,
4949
) -> None:
50-
5150
url = "%s/_synapse/admin/v1/register" % (server_location.rstrip("/"),)
5251

5352
# Get the nonce
@@ -154,7 +153,6 @@ def register_new_user(
154153

155154

156155
def main() -> None:
157-
158156
logging.captureWarnings(True)
159157

160158
parser = argparse.ArgumentParser(

synapse/_scripts/synapse_port_db.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1205,7 +1205,6 @@ def render(self, force: bool = False) -> None:
12051205
if self.finished:
12061206
status = "Time spent: %s (Done!)" % (duration_str,)
12071207
else:
1208-
12091208
if self.total_processed > 0:
12101209
left = float(self.total_remaining) / self.total_processed
12111210

synapse/_scripts/synctl.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ def stop(pidfile: str, app: str) -> Optional[int]:
167167

168168

169169
def main() -> None:
170-
171170
parser = argparse.ArgumentParser()
172171

173172
parser.add_argument(

synapse/app/_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def handle_startup_exception(e: Exception) -> NoReturn:
213213
def redirect_stdio_to_logs() -> None:
214214
streams = [("stdout", LogLevel.info), ("stderr", LogLevel.error)]
215215

216-
for (stream, level) in streams:
216+
for stream, level in streams:
217217
oldStream = getattr(sys, stream)
218218
loggingFile = LoggingFile(
219219
logger=twisted.logger.Logger(namespace=stream),

synapse/app/complement_fork_starter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def handle_signal(signum: int, frame: Optional[FrameType]) -> None:
219219
# memory space and don't need to repeat the work of loading the code!
220220
# Instead of using fork() directly, we use the multiprocessing library,
221221
# which uses fork() on Unix platforms.
222-
for (func, worker_args) in zip(worker_functions, args_by_worker):
222+
for func, worker_args in zip(worker_functions, args_by_worker):
223223
process = multiprocessing.Process(
224224
target=_worker_entrypoint, args=(func, proxy_reactor, worker_args)
225225
)

synapse/app/generic_worker.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,6 @@ class GenericWorkerServer(HomeServer):
157157
DATASTORE_CLASS = GenericWorkerSlavedStore # type: ignore
158158

159159
def _listen_http(self, listener_config: ListenerConfig) -> None:
160-
161160
assert listener_config.http_options is not None
162161

163162
# We always include a health resource.

synapse/app/homeserver.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,6 @@ def setup(config_options: List[str]) -> SynapseHomeServer:
321321
and not config.registration.registrations_require_3pid
322322
and not config.registration.registration_requires_token
323323
):
324-
325324
raise ConfigError(
326325
"You have enabled open registration without any verification. This is a known vector for "
327326
"spam and abuse. If you would like to allow public registration, please consider adding email, "

0 commit comments

Comments
 (0)