Skip to content

Commit

Permalink
[Data] Fix missing lines in BundleQueue docstring (#48553)
Browse files Browse the repository at this point in the history
Follow-up to #48503.

---------

Signed-off-by: Balaji Veeramani <[email protected]>
  • Loading branch information
bveeramani authored and Jay-ju committed Nov 5, 2024
1 parent 089dc84 commit ae1de15
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def add(self, bundle: "RefBundle") -> None:
@abc.abstractmethod
def pop(self) -> "RefBundle":
"""Remove and return the head of the queue.
Raises:
IndexError: If the queue is empty.
"""
Expand All @@ -32,6 +33,7 @@ def pop(self) -> "RefBundle":
@abc.abstractmethod
def peek(self) -> Optional["RefBundle"]:
"""Return the head of the queue without removing it.
If the queue is empty, return `None`.
"""
...
Expand All @@ -54,6 +56,7 @@ def estimate_size_bytes(self) -> int:
@abc.abstractmethod
def is_empty(self):
"""Return whether this queue and all of its internal data structures are empty.
This method is used for testing.
"""
...

0 comments on commit ae1de15

Please sign in to comment.