@@ -424,7 +424,7 @@ async def get_two_tx(tx):
424424 was obtained has been closed.
425425
426426 .. versionchanged:: 5.0
427- Can raise :exc:`ResultConsumedError`.
427+ Can raise :exc:`. ResultConsumedError`.
428428 """
429429 if self ._out_of_scope :
430430 raise ResultConsumedError (self , _RESULT_OUT_OF_SCOPE_ERROR )
@@ -452,24 +452,24 @@ async def single(self, strict: bool = False) -> t.Optional[Record]:
452452
453453 Calling this method always exhausts the result.
454454
455- If ``strict`` is :const :`True`, this method will raise an exception if
455+ If ``strict`` is :data :`True`, this method will raise an exception if
456456 there is not exactly one record left.
457457
458- If ``strict`` is :const :`False`, fewer than one record will make this
458+ If ``strict`` is :data :`False`, fewer than one record will make this
459459 method return :data:`None`, more than one record will make this method
460460 emit a warning and return the first record.
461461
462462 :param strict:
463- If :const :`True`, raise a :class:`neo4j .ResultNotSingleError`
464- instead of returning None if there is more than one record or
465- warning if there are more than 1 record.
466- :const :`False` by default.
463+ If :data :`True`, raise a :exc:` .ResultNotSingleError` instead of
464+ returning :data:` None` if there is more than one record or warning
465+ if there is more than 1 record.
466+ :data :`False` by default.
467467 :type strict: bool
468468
469469 :returns: the next :class:`neo4j.Record` or :data:`None` if none remain
470470
471471 :warns: if more than one record is available and
472- ``strict`` is :const :`False`
472+ ``strict`` is :data :`False`
473473
474474 :raises ResultNotSingleError:
475475 If ``strict=True`` and not exactly one record is available.
@@ -480,7 +480,7 @@ async def single(self, strict: bool = False) -> t.Optional[Record]:
480480 .. versionchanged:: 5.0
481481
482482 * Added ``strict`` parameter.
483- * Can raise :exc:`ResultConsumedError`.
483+ * Can raise :exc:`. ResultConsumedError`.
484484 """
485485 await self ._buffer (2 )
486486 buffer = self ._record_buffer
@@ -545,7 +545,7 @@ async def peek(self) -> t.Optional[Record]:
545545 consumed.
546546
547547 .. versionchanged:: 5.0
548- Can raise :exc:`ResultConsumedError`.
548+ Can raise :exc:`. ResultConsumedError`.
549549 """
550550 await self ._buffer (1 )
551551 if self ._record_buffer :
@@ -554,14 +554,14 @@ async def peek(self) -> t.Optional[Record]:
554554
555555 @AsyncNonConcurrentMethodChecker .non_concurrent_method
556556 async def graph (self ) -> Graph :
557- """Turn the result into a :class:`neo4j .Graph`.
557+ """Turn the result into a :class:`.Graph`.
558558
559- Return a :class:`neo4j.graph. Graph` instance containing all the graph
560- objects in the result. This graph will also contain already consumed
561- records.
559+ Return a :class:`. Graph` instance containing all the graph objects in
560+ the result.
561+ This graph will also contain already consumed records.
562562
563- After calling this method, the result becomes
564- detached, buffering all remaining records.
563+ After calling this method, the result becomes detached, buffering all
564+ remaining records.
565565
566566 :returns: a result graph
567567
@@ -570,7 +570,7 @@ async def graph(self) -> Graph:
570570 consumed.
571571
572572 .. versionchanged:: 5.0
573- Can raise :exc:`ResultConsumedError`.
573+ Can raise :exc:`. ResultConsumedError`.
574574 """
575575 await self ._buffer_all ()
576576 return self ._hydration_scope .get_graph ()
@@ -591,7 +591,7 @@ async def value(
591591 consumed.
592592
593593 .. versionchanged:: 5.0
594- Can raise :exc:`ResultConsumedError`.
594+ Can raise :exc:`. ResultConsumedError`.
595595
596596 .. seealso:: :meth:`.Record.value`
597597 """
@@ -612,7 +612,7 @@ async def values(
612612 consumed.
613613
614614 .. versionchanged:: 5.0
615- Can raise :exc:`ResultConsumedError`.
615+ Can raise :exc:`. ResultConsumedError`.
616616
617617 .. seealso:: :meth:`.Record.values`
618618 """
@@ -641,7 +641,7 @@ async def data(self, *keys: _TResultKey) -> t.List[t.Dict[str, t.Any]]:
641641 consumed.
642642
643643 .. versionchanged:: 5.0
644- Can raise :exc:`ResultConsumedError`.
644+ Can raise :exc:`. ResultConsumedError`.
645645
646646 .. seealso:: :meth:`.Record.data`
647647 """
@@ -690,7 +690,7 @@ async def to_df(
690690 for instance will return a DataFrame with two columns: ``n`` and ``m``
691691 and 10 rows.
692692
693- :param expand: If :const :`True`, some structures in the result will be
693+ :param expand: If :data :`True`, some structures in the result will be
694694 recursively expanded (flattened out into multiple columns) like so
695695 (everything inside ``<...>`` is a placeholder):
696696
@@ -720,21 +720,21 @@ async def to_df(
720720 * ``<r>->.type`` (str) the relationship's type.
721721 See :attr:`.Relationship.type`.
722722
723- * :const :`list` objects under any variable ``<l>`` will be expanded
723+ * :class :`list` objects under any variable ``<l>`` will be expanded
724724 into
725725
726726 * ``<l>[].0`` (any) the 1st list element
727727 * ``<l>[].1`` (any) the 2nd list element
728728 * ...
729729
730- * :const :`dict` objects under any variable ``<d>`` will be expanded
730+ * :class :`dict` objects under any variable ``<d>`` will be expanded
731731 into
732732
733733 * ``<d>{}.<key1>`` (any) the 1st key of the dict
734734 * ``<d>{}.<key2>`` (any) the 2nd key of the dict
735735 * ...
736736
737- * :const :`list` and :const :`dict` objects are expanded recursively.
737+ * :class :`list` and :class :`dict` objects are expanded recursively.
738738 Example::
739739
740740 variable x: [{"foo": "bar", "baz": [42, 0]}, "foobar"]
@@ -751,10 +751,10 @@ async def to_df(
751751 * Everything else (including :class:`.Path` objects) will not
752752 be flattened.
753753
754- :const :`dict` keys and variable names that contain ``.`` or ``\``
754+ :class :`dict` keys and variable names that contain ``.`` or ``\``
755755 will be escaped with a backslash (``\.`` and ``\\`` respectively).
756756 :param parse_dates:
757- If :const :`True`, columns that exclusively contain
757+ If :data :`True`, columns that exclusively contain
758758 :class:`time.DateTime` objects, :class:`time.Date` objects, or
759759 :data:`None`, will be converted to :class:`pandas.Timestamp`.
760760
@@ -818,7 +818,7 @@ def closed(self) -> bool:
818818 result cannot be used to acquire further records.
819819
820820 In such case, all methods that need to access the Result's records,
821- will raise a :exc:`ResultConsumedError` when called.
821+ will raise a :exc:`. ResultConsumedError` when called.
822822
823823 :returns: whether the result is closed.
824824
0 commit comments