a
    <b                     @  s   U d Z ddlmZ ddlZddlZddlmZ dade	d< ddd	d
Z
dZed& ejde
 eejd W d   n1 s0    Y  dS )z&
Unopinionated display configuration.
    )annotationsN)configz
str | None_initial_defencodingstr)returnc               	   C  s   d} zt jjpt jj} W n ttfy.   Y n0 | r@d|  v rbzt } W n tj	y`   Y n0 | rrd|  v rzt 
 } tst 
 a| S )z
    Try to find the most capable encoding supported by the console.
    slightly modified from the way IPython handles the same issue.
    Nascii)sysstdoutencodingstdinAttributeErrorOSErrorlowerlocalegetpreferredencodingErrorgetdefaultencodingr   )r
    r   f/Users/vegardjervell/Documents/master/model/venv/lib/python3.9/site-packages/pandas/_config/display.pydetect_console_encoding   s    r   z
: str/unicode
    Defaults to the detected encoding of the console.
    Specifies the encoding to be used for strings returned by to_string,
    these are generally strings meant to be displayed on the console.
Zdisplayr
   )Z	validator)__doc__
__future__r   r   r   Zpandas._configr   cfr   __annotations__r   Zpc_encoding_docZconfig_prefixZregister_optionZis_textr   r   r   r   <module>   s   #