Skip to content

Commit

Permalink
Fix some linting
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobbieker committed Nov 24, 2023
1 parent fc35fa5 commit 4459994
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions ocf_datapipes/utils/datapipes.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"""Datapipes from TorchData that have been copied in for use with core PyTorch Datapipes"""
from typing import Iterator, List, Optional, Sequence, Sized, Tuple, TypeVar

from torch.utils.data import IterDataPipe, functional_datapipe
Expand Down Expand Up @@ -255,9 +256,4 @@ def __len__(self) -> int:
raise TypeError(
"The length of this HeaderIterDataPipe cannot be determined."
) from error

warn(
"The length of this HeaderIterDataPipe is inferred to be equal to its limit."
"The actual value may be smaller if the actual length of source_datapipe is smaller than the limit."
)
return self.limit

0 comments on commit 4459994

Please sign in to comment.