Skip to content

Commit 64beee3

Browse files
committed
Fix test coverage for untestable lines
1 parent 27f3457 commit 64beee3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

gql/client.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
if sys.version_info[:2] >= (3, 8):
3030
from typing import Literal
3131
else:
32-
from typing_extensions import Literal
32+
from typing_extensions import Literal # pragma: no cover
3333

3434

3535
class Client:
@@ -385,7 +385,7 @@ def execute(
385385
get_execution_result: Literal[False] = ...,
386386
**kwargs,
387387
) -> Dict[str, Any]:
388-
...
388+
... # pragma: no cover
389389

390390
@overload
391391
def execute(
@@ -399,7 +399,7 @@ def execute(
399399
get_execution_result: Literal[True],
400400
**kwargs,
401401
) -> ExecutionResult:
402-
...
402+
... # pragma: no cover
403403

404404
def execute(
405405
self,
@@ -576,7 +576,7 @@ def subscribe(
576576
get_execution_result: Literal[False] = ...,
577577
**kwargs,
578578
) -> AsyncGenerator[Dict[str, Any], None]:
579-
...
579+
... # pragma: no cover
580580

581581
@overload
582582
def subscribe(
@@ -590,7 +590,7 @@ def subscribe(
590590
get_execution_result: Literal[True],
591591
**kwargs,
592592
) -> AsyncGenerator[ExecutionResult, None]:
593-
...
593+
... # pragma: no cover
594594

595595
async def subscribe(
596596
self,
@@ -734,7 +734,7 @@ async def execute(
734734
get_execution_result: Literal[False] = ...,
735735
**kwargs,
736736
) -> Dict[str, Any]:
737-
...
737+
... # pragma: no cover
738738

739739
@overload
740740
async def execute(
@@ -748,7 +748,7 @@ async def execute(
748748
get_execution_result: Literal[True],
749749
**kwargs,
750750
) -> ExecutionResult:
751-
...
751+
... # pragma: no cover
752752

753753
async def execute(
754754
self,

0 commit comments

Comments
 (0)