Skip to content

Commit e73096f

Browse files
authored
Make AsyncTransport and Transport proper abstract base classes (#350)
1 parent a7f7649 commit e73096f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

gql/transport/async_transport.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from graphql import DocumentNode, ExecutionResult
55

66

7-
class AsyncTransport:
7+
class AsyncTransport(abc.ABC):
88
@abc.abstractmethod
99
async def connect(self):
1010
"""Coroutine used to create a connection to the specified address"""

gql/transport/transport.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from graphql import DocumentNode, ExecutionResult
44

55

6-
class Transport:
6+
class Transport(abc.ABC):
77
@abc.abstractmethod
88
def execute(self, document: DocumentNode, *args, **kwargs) -> ExecutionResult:
99
"""Execute GraphQL query.

0 commit comments

Comments
 (0)