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 <bveeramani@berkeley.edu>
  • Loading branch information
bveeramani authored Nov 5, 2024
1 parent 7e2ba28 commit 27faad3
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 27faad3

Please sign in to comment.