Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
18 lines (11 loc) · 506 Bytes

File metadata and controls

18 lines (11 loc) · 506 Bytes
Copy raw file
Download raw file
Edit and raw actions

File objects

When you want to declare some types of files, you can use Path. However, in some cases you may need to have access to a file-like object, and then you can use these special File types.

These objects can be imported from typer directly:

from typer import FileBinaryRead, FileBinaryWrite, FileText, FileTextWrite

::: typer.FileText

::: typer.FileTextWrite

::: typer.FileBinaryRead

::: typer.FileBinaryWrite

Morty Proxy This is a proxified and sanitized view of the page, visit original site.