diff options
author | Olivier Wilkinson (reivilibre) <oliverw@matrix.org> | 2022-05-27 13:26:05 +0100 |
---|---|---|
committer | Olivier Wilkinson (reivilibre) <oliverw@matrix.org> | 2022-05-27 14:31:51 +0100 |
commit | e7b109b3004ec9ecce36896db81ef2c87b897729 (patch) | |
tree | aa532714ca78e0daf4b0b8cd5ad754595f38b4dd /synapse | |
parent | lints (diff) | |
download | synapse-e7b109b3004ec9ecce36896db81ef2c87b897729.tar.xz |
resolve linter arguments
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/app/_complement_fork_starter.py | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/synapse/app/_complement_fork_starter.py b/synapse/app/_complement_fork_starter.py index 57cfef440b..dc5a1b0f0a 100644 --- a/synapse/app/_complement_fork_starter.py +++ b/synapse/app/_complement_fork_starter.py @@ -11,11 +11,9 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -import importlib -import itertools -import multiprocessing -import sys - +# +# +# # This script is intended for test purposes only (within Complement). # It spawns multiple workers, whilst only going through the code loading process # once. @@ -31,6 +29,10 @@ import sys # synapse.app.generic_worker [args..] -- \ # ... # synapse.app.generic_worker [args..] +import importlib +import itertools +import multiprocessing +import sys from typing import Any, Callable, List from twisted.internet.main import installReactor @@ -42,10 +44,10 @@ class ProxiedReactor: the reactor by changing the target of the proxy. """ - def __init__(self): - self.___reactor_target = None + def __init__(self) -> None: + self.___reactor_target: Any = None - def ___install(self, new_reactor): + def ___install(self, new_reactor: Any) -> None: self.___reactor_target = new_reactor def __getattr__(self, attr_name: str) -> Any: |