Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
charset_normalizer.cli.__main__.FileType Class Reference

Public Member Functions

 __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)
 

Protected Attributes

 _mode
 
 _bufsize
 
 _encoding
 
 _errors
 

Detailed Description

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: