Skip to content

Commit e2ed57c

Browse files
authored
Use int instead of numbers.integral in docstring (#237)
1 parent 2c59958 commit e2ed57c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/torchcodec/decoders/_video_decoder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def __getitem__(self, key: Union[numbers.Integral, slice]) -> Tensor:
135135
"""Return frame or frames as tensors, at the given index or range.
136136
137137
Args:
138-
key(numbers.Integral or slice): The index or range of frame(s) to retrieve.
138+
key(int or slice): The index or range of frame(s) to retrieve.
139139
140140
Returns:
141141
torch.Tensor: The frame or frames at the given index or range.

0 commit comments

Comments
 (0)