summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorDan Callahan <danc@element.io>2021-04-13 10:41:34 +0100
committerGitHub <noreply@github.com>2021-04-13 10:41:34 +0100
commit1d5f0e3529ec5acd889037c8ebcca2820ad003d5 (patch)
tree4e911bba7305b49ec44549f803b5cf64f5323456 /synapse
parentAdd an admin API to manage ratelimit for a specific user (#9648) (diff)
downloadsynapse-1d5f0e3529ec5acd889037c8ebcca2820ad003d5.tar.xz
Bump black configuration to target py36 (#9781)
Signed-off-by: Dan Callahan <danc@element.io>
Diffstat (limited to 'synapse')
-rw-r--r--synapse/config/tls.py2
-rw-r--r--synapse/handlers/presence.py2
-rw-r--r--synapse/http/matrixfederationclient.py2
-rw-r--r--synapse/http/site.py2
-rw-r--r--synapse/storage/database.py8
5 files changed, 8 insertions, 8 deletions
diff --git a/synapse/config/tls.py b/synapse/config/tls.py
index ad37b93c02..85b5db4c40 100644
--- a/synapse/config/tls.py
+++ b/synapse/config/tls.py
@@ -270,7 +270,7 @@ class TlsConfig(Config):
         tls_certificate_path,
         tls_private_key_path,
         acme_domain,
-        **kwargs
+        **kwargs,
     ):
         """If the acme_domain is specified acme will be enabled.
         If the TLS paths are not specified the default will be certs in the
diff --git a/synapse/handlers/presence.py b/synapse/handlers/presence.py
index c817f2952d..0047907cd9 100644
--- a/synapse/handlers/presence.py
+++ b/synapse/handlers/presence.py
@@ -1071,7 +1071,7 @@ class PresenceEventSource:
         room_ids=None,
         include_offline=True,
         explicit_room_id=None,
-        **kwargs
+        **kwargs,
     ) -> Tuple[List[UserPresenceState], int]:
         # The process for getting presence events are:
         #  1. Get the rooms the user is in.
diff --git a/synapse/http/matrixfederationclient.py b/synapse/http/matrixfederationclient.py
index 5f01ebd3d4..ab47dec8f2 100644
--- a/synapse/http/matrixfederationclient.py
+++ b/synapse/http/matrixfederationclient.py
@@ -272,7 +272,7 @@ class MatrixFederationHttpClient:
         self,
         request: MatrixFederationRequest,
         try_trailing_slash_on_400: bool = False,
-        **send_request_args
+        **send_request_args,
     ) -> IResponse:
         """Wrapper for _send_request which can optionally retry the request
         upon receiving a combination of a 400 HTTP response code and a
diff --git a/synapse/http/site.py b/synapse/http/site.py
index c0c873ce32..32b5e19c09 100644
--- a/synapse/http/site.py
+++ b/synapse/http/site.py
@@ -497,7 +497,7 @@ class SynapseSite(Site):
         resource,
         server_version_string,
         *args,
-        **kwargs
+        **kwargs,
     ):
         Site.__init__(self, resource, *args, **kwargs)
 
diff --git a/synapse/storage/database.py b/synapse/storage/database.py
index fa15b0ce5b..77ef29ec71 100644
--- a/synapse/storage/database.py
+++ b/synapse/storage/database.py
@@ -488,7 +488,7 @@ class DatabasePool:
         exception_callbacks: List[_CallbackListEntry],
         func: "Callable[..., R]",
         *args: Any,
-        **kwargs: Any
+        **kwargs: Any,
     ) -> R:
         """Start a new database transaction with the given connection.
 
@@ -622,7 +622,7 @@ class DatabasePool:
         func: "Callable[..., R]",
         *args: Any,
         db_autocommit: bool = False,
-        **kwargs: Any
+        **kwargs: Any,
     ) -> R:
         """Starts a transaction on the database and runs a given function
 
@@ -682,7 +682,7 @@ class DatabasePool:
         func: "Callable[..., R]",
         *args: Any,
         db_autocommit: bool = False,
-        **kwargs: Any
+        **kwargs: Any,
     ) -> R:
         """Wraps the .runWithConnection() method on the underlying db_pool.
 
@@ -775,7 +775,7 @@ class DatabasePool:
         desc: str,
         decoder: Optional[Callable[[Cursor], R]],
         query: str,
-        *args: Any
+        *args: Any,
     ) -> R:
         """Runs a single query for a result set.