|
|
| __init__ (self, str mode="r", int bufsize=-1, str|None encoding=None, str|None errors=None) |
| |
|
typing.IO | __call__ (self, str string) |
| |
|
str | __repr__ (self) |
| |
|
|
| _mode |
| |
|
| _bufsize |
| |
|
| _encoding |
| |
|
| _errors |
| |
Factory for creating file object types
Instances of FileType are typically passed as type= arguments to the
ArgumentParser add_argument() method.
Keyword Arguments:
- mode -- A string indicating how the file is to be opened. Accepts the
same values as the builtin open() function.
- bufsize -- The file's desired buffer size. Accepts the same values as
the builtin open() function.
- encoding -- The file's encoding. Accepts the same values as the
builtin open() function.
- errors -- A string indicating how encoding and decoding errors are to
be handled. Accepts the same value as the builtin open() function.
Backported from CPython 3.12
The documentation for this class was generated from the following file:
- docs/help/help-venv/lib/python3.12/site-packages/charset_normalizer/cli/__main__.py