A file (an image, a document, ...).
Attributes#
| Attribute | Type | Description |
|---|---|---|
type | Literal['file'] = 'file' | |
media_type | str | |
data | FileData | |
file_name | str | None = None | |
options | ProviderOptions = field(default_factory=_options) |
Functions#
__init__#
__init__(media_type, data, file_name=None, options=_options()) -> None| Parameter | Type | Description |
|---|---|---|
media_type | str | |
data | FileData | |
file_name | str | None = None | |
options | ProviderOptions = _options() |
pipe#
pipe[B](f) -> B| Parameter | Type | Description |
|---|---|---|
f | Callable[[Self], B] |
Returns B
def pipe[B](self, f: Callable[[Self], B], /) -> B:
return f(self)