We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09e51b2 commit 715db20Copy full SHA for 715db20
src/torchcodec/encoders/_video_encoder.py
@@ -1,5 +1,5 @@
1
from pathlib import Path
2
-from typing import Union
+from typing import Optional, Union
3
4
import torch
5
from torch import Tensor
@@ -36,7 +36,7 @@ def to_file(
36
self,
37
dest: Union[str, Path],
38
*,
39
- crf: int = None,
+ crf: Optional[int] = None,
40
) -> None:
41
"""Encode frames into a file.
42
@@ -59,7 +59,7 @@ def to_tensor(
59
60
format: str,
61
62
63
) -> Tensor:
64
"""Encode frames into raw bytes, as a 1D uint8 Tensor.
65
@@ -85,7 +85,7 @@ def to_file_like(
85
file_like,
86
87
88
89
90
"""Encode frames into a file-like object.
91
0 commit comments