Ë
    Ö—Äj1  ã                  ób   — d dl mZ d dlZd dlmZ d dlmZmZmZm	Z	 d dl
Z
e G d„ d«      «       Zy)é    )ÚannotationsN)Ú	dataclass)ÚIOÚAnyÚBinaryIOÚTextIOc                  ó`   — e Zd ZU dZdZded<   dZded<   dZd	ed
<   dZd	ed<   dZ	ded<   dd„Z
y)ÚFileModeaÝ  Factory for creating file object types.

    Instances of FileType are typically passed as type= arguments to the
    ArgumentParser add_argument() method.

    Arguments:
        mode: The file mode to use to open the file. Passes directly through to builtin `open()`.
        buffering: The file's desired buffer size. Passes directly through to builtin `open()`.
        encoding: The file's encoding. Passes directly through to builtin `open()`.
        errors: A string indicating how encoding and decoding errors are to
            be handled. Passes directly through to builtin `open()`.

        error_code: The exit code to use when an error occurs. Defaults to 1. Note this is **not**
            an `open()` argument.
    ÚrÚstrÚmodeéÿÿÿÿÚintÚ	bufferingNz
str | NoneÚencodingÚerrorsé   Ú
error_codec                ó~  — |dk(  rÉd| j                   v r8d| j                   v rt        j                  j                  S t        j                  S t	        d„ | j                   D «       «      r8d| j                   v rt        j
                  j                  S t        j
                  S t        j                  d| j                   › d�| j                  ¬«      ‚	 t        || j                   | j                  | j                  | j                  «      S # t        $ r,}t        j                  d|› d	|› �| j                  ¬«      ‚d
}~ww xY w)z±Open the given `filename` and return the file handle.

        Supply "-" as the filename to read from stdin or write to stdout,
        depending on the chosen `mode`.
        Ú-r   Úbc              3  ó*   K  — | ]  }|d v sŒ|–— Œ y­w)>   ÚaÚwÚxN© )Ú.0Úcs     úRC:\Users\pivot\Documents\cueki\casual-preloader\Lib\site-packages\cappa/file_io.pyÚ	<genexpr>z$FileMode.__call__.<locals>.<genexpr>0   s   è ø€ Ð@™i˜¨1°Ò+?”1™iùs   ‚	ŒzInvalid mode 'z' with supplied '-' file name.)ÚcodezCannot open z: N)r   ÚsysÚstdinÚbufferÚanyÚstdoutÚcappaÚExitr   Úopenr   r   r   ÚOSError)ÚselfÚfilenameÚes      r   Ú__call__zFileMode.__call__#   sû   € ð �sŠ?Ø�d—i‘iÑØ˜$Ÿ)™)Ñ#ÜŸ9™9×+Ñ+Ð+Ü—y‘yÐ äÑ@˜dŸišiÓ@Ô@Ø˜$Ÿ)™)Ñ#ÜŸ:™:×,Ñ,Ð,Ü—z‘zÐ!ä—*‘*Ø  §¡ Ð+IÐJØ—_‘_ôð ð
	SÜ˜ $§)¡)¨T¯^©^¸T¿]¹]ÈDÏKÉKÓXÐXøÜò 	SÜ—*‘*˜|¨H¨:°R¸°sÐ;À$Ç/Á/ÔRÐRûð	Sús   Ã6D Ä	D<Ä'D7Ä7D<)r,   r   ÚreturnzIO[Any] | TextIO | BinaryIO)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Ú__annotations__r   r   r   r   r.   r   ó    r   r
   r
   
   s@   … ñð  €Dˆ#ƒOØ€IˆsÓØ€HˆjÓØ€FˆJÓà€J�ÓôSr5   r
   )Ú
__future__r   r"   Údataclassesr   Útypingr   r   r   r   r'   r
   r   r5   r   Ú<module>r9      s3   ðÝ "ã 
Ý !ß ,Ó ,ã ð ÷2Sð 2Só ñ2Sr5   