File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -1489,10 +1489,11 @@ def __init__(
1489
1489
async def __anext__ (self ) -> bytes :
1490
1490
return super ().__next__ ()
1491
1491
1492
- def __next__ (self ) -> bytes : # noqa: F811, RUF100
1493
- if _IS_SYNC :
1494
- return super ().__next__ ()
1495
- else :
1492
+ # This is a duplicate definition of __next__ for the synchronous API
1493
+ # due to the limitations of our synchro process
1494
+ if not _IS_SYNC :
1495
+
1496
+ def __next__ (self ) -> bytes : # noqa: F811, RUF100
1496
1497
raise TypeError (
1497
1498
"AsyncGridOut does not support synchronous iteration. Use `async for` instead"
1498
1499
)
Original file line number Diff line number Diff line change @@ -1477,10 +1477,11 @@ def __init__(
1477
1477
def __next__ (self ) -> bytes :
1478
1478
return super ().__next__ ()
1479
1479
1480
- def __next__ (self ) -> bytes : # noqa: F811, RUF100
1481
- if _IS_SYNC :
1482
- return super ().__next__ ()
1483
- else :
1480
+ # This is a duplicate definition of __next__ for the synchronous API
1481
+ # due to the limitations of our synchro process
1482
+ if not _IS_SYNC :
1483
+
1484
+ def __next__ (self ) -> bytes : # noqa: F811, RUF100
1484
1485
raise TypeError ("GridOut does not support synchronous iteration. Use `for` instead" )
1485
1486
1486
1487
def open (self ) -> None :
You can’t perform that action at this time.
0 commit comments