Skip to content

Commit 9499ae9

Browse files
committed
Black the modules in graphql_ws root
1 parent e904b15 commit 9499ae9

3 files changed

Lines changed: 15 additions & 15 deletions

File tree

graphql_ws/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
"""Top-level package for GraphQL WS."""
44

55
__author__ = """Syrus Akbary"""
6-
__email__ = 'me@syrusakbary.com'
7-
__version__ = '0.3.1'
6+
__email__ = "me@syrusakbary.com"
7+
__version__ = "0.3.1"

graphql_ws/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ def on_connection_terminate(self, connection_context, op_id):
9999
return connection_context.close(1011)
100100

101101
def get_graphql_params(self, connection_context, payload):
102-
context = payload.get('context') or {}
103-
context.setdefault('request_context', connection_context.request_context)
102+
context = payload.get("context") or {}
103+
context.setdefault("request_context", connection_context.request_context)
104104
return {
105105
"request_string": payload.get("query"),
106106
"variable_values": payload.get("variables"),

graphql_ws/constants.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
GRAPHQL_WS = 'graphql-ws'
1+
GRAPHQL_WS = "graphql-ws"
22
WS_PROTOCOL = GRAPHQL_WS
33

4-
GQL_CONNECTION_INIT = 'connection_init' # Client -> Server
5-
GQL_CONNECTION_ACK = 'connection_ack' # Server -> Client
6-
GQL_CONNECTION_ERROR = 'connection_error' # Server -> Client
4+
GQL_CONNECTION_INIT = "connection_init" # Client -> Server
5+
GQL_CONNECTION_ACK = "connection_ack" # Server -> Client
6+
GQL_CONNECTION_ERROR = "connection_error" # Server -> Client
77

88
# NOTE: This one here don't follow the standard due to connection optimization
9-
GQL_CONNECTION_TERMINATE = 'connection_terminate' # Client -> Server
10-
GQL_CONNECTION_KEEP_ALIVE = 'ka' # Server -> Client
11-
GQL_START = 'start' # Client -> Server
12-
GQL_DATA = 'data' # Server -> Client
13-
GQL_ERROR = 'error' # Server -> Client
14-
GQL_COMPLETE = 'complete' # Server -> Client
15-
GQL_STOP = 'stop' # Client -> Server
9+
GQL_CONNECTION_TERMINATE = "connection_terminate" # Client -> Server
10+
GQL_CONNECTION_KEEP_ALIVE = "ka" # Server -> Client
11+
GQL_START = "start" # Client -> Server
12+
GQL_DATA = "data" # Server -> Client
13+
GQL_ERROR = "error" # Server -> Client
14+
GQL_COMPLETE = "complete" # Server -> Client
15+
GQL_STOP = "stop" # Client -> Server

0 commit comments

Comments
 (0)