Skip to content

Commit

Permalink
Fix comment in client.py for the current purpose of the _generator ref
Browse files Browse the repository at this point in the history
  • Loading branch information
leszekhanusz committed Jul 28, 2024
1 parent 8506640 commit 94a4156
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gql/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1357,8 +1357,8 @@ async def _subscribe(
**kwargs,
)

# Keep a reference to the inner generator to allow the user to call aclose()
# before a break if python version is too old (pypy3 py 3.6.1)
# Keep a reference to the inner generator
# This is only used for the tests to simulate a KeyboardInterrupt event
self._generator = inner_generator

try:
Expand Down

0 comments on commit 94a4156

Please sign in to comment.