We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb30af7 commit 2609096Copy full SHA for 2609096
asyncgpio/gpio.py
@@ -254,13 +254,13 @@ def _update(self):
254
raise OSError("unable to update state")
255
256
def __iter__(self):
257
- raise RuntimeError("You need to use 'async for'")
+ raise RuntimeError("You need to use 'async for', not 'for'")
258
259
def __aenter__(self):
260
- raise RuntimeError("YOu need to use 'with'")
+ raise RuntimeError("You need to use 'with', not 'async with'")
261
262
def __aexit__(self):
263
264
265
def __aiter__(self):
266
if self._state != _IN_EV:
0 commit comments