1.16.10
flytekit.types.file
This module provides functionality related to FlyteFile
Directory
Classes
| Class | Description |
|---|---|
FileExt |
Used for annotating file extension types of FlyteFile. |
flytekit.types.file.FileExt
Used for annotating file extension types of FlyteFile. This is useful for extensions that have periods in them, e.g., “tar.gz”.
Example: TAR_GZ = Annotated[str, FileExt(“tar.gz”)]
class FileExt(
ext: str,
)| Parameter | Type | Description |
|---|---|---|
ext |
str |
Methods
| Method | Description |
|---|---|
check_and_convert_to_str() |
check_and_convert_to_str()
def check_and_convert_to_str(
item: typing.Union[typing.Type, str],
) -> str| Parameter | Type | Description |
|---|---|---|
item |
typing.Union[typing.Type, str] |