@@ -375,7 +375,7 @@ def _creation_frame(self) -> t.Literal[False] | inspect.FrameInfo:
375
375
assert self ._creation_frame_cache is not None # help mypy a little
376
376
return self ._creation_frame_cache
377
377
378
- @AsyncNonConcurrentMethodChecker .non_concurrent_iter
378
+ @AsyncNonConcurrentMethodChecker ._non_concurrent_iter
379
379
async def __aiter__ (self ) -> t .AsyncIterator [Record ]:
380
380
"""
381
381
Create an iterator returning records.
@@ -408,7 +408,7 @@ async def __aiter__(self) -> t.AsyncIterator[Record]:
408
408
if self ._consumed :
409
409
raise ResultConsumedError (self , _RESULT_CONSUMED_ERROR )
410
410
411
- @AsyncNonConcurrentMethodChecker .non_concurrent_method
411
+ @AsyncNonConcurrentMethodChecker ._non_concurrent_method
412
412
async def __anext__ (self ) -> Record :
413
413
"""
414
414
Advance the result stream and return the record.
@@ -498,7 +498,7 @@ def _tx_failure(self, exc):
498
498
self ._attached = False
499
499
self ._exception = exc
500
500
501
- @AsyncNonConcurrentMethodChecker .non_concurrent_method
501
+ @AsyncNonConcurrentMethodChecker ._non_concurrent_method
502
502
async def consume (self ) -> ResultSummary :
503
503
"""
504
504
Consume the remainder of this result and return the summary.
@@ -565,7 +565,7 @@ async def single(
565
565
@t .overload
566
566
async def single (self , strict : te .Literal [True ]) -> Record : ...
567
567
568
- @AsyncNonConcurrentMethodChecker .non_concurrent_method
568
+ @AsyncNonConcurrentMethodChecker ._non_concurrent_method
569
569
async def single (self , strict : bool = False ) -> Record | None :
570
570
"""
571
571
Obtain the next and only remaining record or None.
@@ -631,7 +631,7 @@ async def single(self, strict: bool = False) -> Record | None:
631
631
)
632
632
return buffer .popleft ()
633
633
634
- @AsyncNonConcurrentMethodChecker .non_concurrent_method
634
+ @AsyncNonConcurrentMethodChecker ._non_concurrent_method
635
635
async def fetch (self , n : int ) -> list [Record ]:
636
636
"""
637
637
Obtain up to n records from this result.
@@ -655,7 +655,7 @@ async def fetch(self, n: int) -> list[Record]:
655
655
for _ in range (min (n , len (self ._record_buffer )))
656
656
]
657
657
658
- @AsyncNonConcurrentMethodChecker .non_concurrent_method
658
+ @AsyncNonConcurrentMethodChecker ._non_concurrent_method
659
659
async def peek (self ) -> Record | None :
660
660
"""
661
661
Obtain the next record from this result without consuming it.
@@ -677,7 +677,7 @@ async def peek(self) -> Record | None:
677
677
return self ._record_buffer [0 ]
678
678
return None
679
679
680
- @AsyncNonConcurrentMethodChecker .non_concurrent_method
680
+ @AsyncNonConcurrentMethodChecker ._non_concurrent_method
681
681
async def graph (self ) -> Graph :
682
682
"""
683
683
Turn the result into a :class:`.Graph`.
@@ -701,7 +701,7 @@ async def graph(self) -> Graph:
701
701
await self ._buffer_all ()
702
702
return self ._hydration_scope .get_graph ()
703
703
704
- @AsyncNonConcurrentMethodChecker .non_concurrent_method
704
+ @AsyncNonConcurrentMethodChecker ._non_concurrent_method
705
705
async def value (
706
706
self , key : _TResultKey = 0 , default : object = None
707
707
) -> list [t .Any ]:
@@ -725,7 +725,7 @@ async def value(
725
725
"""
726
726
return [record .value (key , default ) async for record in self ]
727
727
728
- @AsyncNonConcurrentMethodChecker .non_concurrent_method
728
+ @AsyncNonConcurrentMethodChecker ._non_concurrent_method
729
729
async def values (self , * keys : _TResultKey ) -> list [list [t .Any ]]:
730
730
"""
731
731
Return the remainder of the result as a list of values lists.
@@ -746,7 +746,7 @@ async def values(self, *keys: _TResultKey) -> list[list[t.Any]]:
746
746
"""
747
747
return [record .values (* keys ) async for record in self ]
748
748
749
- @AsyncNonConcurrentMethodChecker .non_concurrent_method
749
+ @AsyncNonConcurrentMethodChecker ._non_concurrent_method
750
750
async def data (self , * keys : _TResultKey ) -> list [dict [str , t .Any ]]:
751
751
"""
752
752
Return the remainder of the result as a list of dictionaries.
@@ -776,7 +776,7 @@ async def data(self, *keys: _TResultKey) -> list[dict[str, t.Any]]:
776
776
"""
777
777
return [record .data (* keys ) async for record in self ]
778
778
779
- @AsyncNonConcurrentMethodChecker .non_concurrent_method
779
+ @AsyncNonConcurrentMethodChecker ._non_concurrent_method
780
780
async def to_eager_result (self ) -> EagerResult :
781
781
"""
782
782
Convert this result to an :class:`.EagerResult`.
@@ -801,7 +801,7 @@ async def to_eager_result(self) -> EagerResult:
801
801
summary = await self .consume (),
802
802
)
803
803
804
- @AsyncNonConcurrentMethodChecker .non_concurrent_method
804
+ @AsyncNonConcurrentMethodChecker ._non_concurrent_method
805
805
async def to_df (
806
806
self , expand : bool = False , parse_dates : bool = False
807
807
) -> pandas .DataFrame :
0 commit comments