Skip to content

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 20, 2025
1 parent 8d87442 commit 29318b7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions daphne/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ class DaphneProcess(multiprocessing.Process):
port it ends up listening on back to the parent process.
"""

def __init__(self, host, get_application, kwargs=None, setup=None, teardown=None, port=None):
def __init__(
self, host, get_application, kwargs=None, setup=None, teardown=None, port=None
):
super().__init__()
self.host = host
self.get_application = get_application
Expand All @@ -153,7 +155,9 @@ def run(self):

try:
# Create the server class
endpoints = build_endpoint_description_strings(host=self.host, port=self.port.value)
endpoints = build_endpoint_description_strings(
host=self.host, port=self.port.value
)
self.server = Server(
application=application,
endpoints=endpoints,
Expand Down

0 comments on commit 29318b7

Please sign in to comment.