Hacked By AnonymousFox

Current Path : /opt/cloudlinux/venv/lib/python3.11/site-packages/pylint/checkers/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/pylint/checkers/__pycache__/stdlib.cpython-311.pyc

�

�܋f}����UdZddlmZddlZddlmZddlmZmZm	Z	m
Z
mZddlZddlm
Z
mZddlmZddlmZdd	lmZmZmZdd
lmZddlmZerddlmZe	eeeefe
efZd
Z e dzZ!dZ"dZ#dZ$dZ%dZ&dZ'dZ(ddhZ)dZ*hd�Z+ddhZ,dddd�idd�d d�d!d�d"d�d#d�d$d�d%d�d&d'�d(d)�d*d+�d,d-�d.d/�d0d-�d1d-�d2d-�d3d-�d4d-�d5d6d6d7d7d8d8d9��d:d;id<�Z-d=e.d><d?hhd@�dAhdB�Z/dCe.dD<dEhdF�ihdG�hdH�dI�hdJ�hdK�hdL�hdM�hdN�dOhhdP�dQdRhhdS�hdT�hdU�hdV�hdW�dX�
dY�Z0dZe.d[<d\d]d^hid_hd`dahhdb�dc�dddehidfhdghdh�di�Z1dje.dk<dwdp�Z2Gdq�dree��Z3dxdv�Z4dS)yz0Checkers for various standard library functions.�)�annotationsN)�Iterable)�
TYPE_CHECKING�Any�Dict�Set�Tuple)�nodes�util)�InferenceResult)�
interfaces)�BaseChecker�DeprecatedMixin�utils)�	INFERENCE)�MessageDefinitionTuple)�PyLinter)�open�file)�	read_text�
write_textz
unittest.casezthreading.Threadz	copy.copyzos._Environ)z	os.getenvzsubprocess.Popenzsubprocess.run�_io�pathlib)zbuiltins.breakpointzsys.breakpointhookz
pdb.set_trace>�functools.lru_cache�$functools._lru_cache_wrapper.wrapper�'functools.lru_cache.decorating_functionzbuiltins.staticmethodzbuiltins.classmethod))N�x)�int�bool�floatzasyncio.tasks.sleep))N�loopzasyncio.tasks.gatherzasyncio.tasks.shieldzasyncio.tasks.wait_forzasyncio.tasks.waitzasyncio.tasks.as_completedz)asyncio.subprocess.create_subprocess_execz*asyncio.subprocess.create_subprocess_shell))�r!zgettext.translation))��codesetzgettext.install))�r$zfunctools.partialmethod)�N�funczweakref.finalize)r&)N�objzprofile.Profile.runcallzcProfile.Profile.runcallzbdb.Bdb.runcallztrace.Trace.runfunczcurses.wrapper))N�function))N�fn))N�callback))N�c)N�typeid)z!unittest.case.TestCase.addCleanupz3concurrent.futures.thread.ThreadPoolExecutor.submitz5concurrent.futures.process.ProcessPoolExecutor.submitz"contextlib._BaseExitStack.callbackz-contextlib.AsyncExitStack.push_async_callbackz&multiprocessing.managers.Server.createz2multiprocessing.managers.SharedMemoryServer.createzrandom.Random.shuffle))��random)�rrr���r�r2�	rzIdict[tuple[int, int, int], dict[str, tuple[tuple[int | None, str], ...]]]�DEPRECATED_ARGUMENTSzasyncio.coroutine>�abc.abstractproperty�abc.abstractclassmethod�abc.abstractstaticmethodz importlib.util.module_for_loader)r1�r2r2r�r2r"r�DeprecationDict�DEPRECATED_DECORATORSr0>�cgi.parse_qs�
cgi.parse_qsl�ctypes.c_buffer�tkinter.Misc.tk_menuBar� tkinter.Menu.tk_bindForTraversal�,distutils.command.sdist.sdist.check_metadata�2distutils.command.register.register.check_metadata>�	os.popen2�	os.popen3�	os.popen4�commands.getstatus�macostools.touched>	�unittest.case.TestCase.assert_�#unittest.case.TestCase.assertEquals�&unittest.case.TestCase.assertNotEquals�)unittest.case.TestCase.assertAlmostEquals�,unittest.case.TestCase.assertNotAlmostEquals�'xml.etree.ElementTree.XMLParser.doctype�)xml.etree.ElementTree.Element.getchildren�)xml.etree.ElementTree.Element.getiterator�+xml.etree.ElementTree.XMLParser.getiterator))r%�r)r%�r>�inspect.getargspec�failIf�assert_�
failUnless�failIfEqual�assertEquals�assertNotEquals�failUnlessEqual�failUnlessRaises�failIfAlmostEqual�assertAlmostEquals�assertRaisesRegexp�assertRegexpMatches�assertNotAlmostEquals�failUnlessAlmostEqual�assertNotRegexpMatches>�ntpath.splitunc�os.path.splitunc�base64.decodestring�base64.encodestring�os.stat_float_times�turtle.RawTurtle.settiltangle>�
cgi.escape�#configparser.RawConfigParser.readfprOrPrQrR>�
time.clock�logging.warn�platform.popen�logging.Logger.warn�inspect.getmoduleinfo�nntplib._NNTPBase.xpath�sqlite3.OptimizedUnicode�logging.LoggerAdapter.warn>	�plistlib.readPlist�plistlib.writePlist�importlib.find_loader�plistlib.writePlistToBytes�plistlib.readPlistFromBytes� importlib.abc.Loader.load_module� importlib.abc.Loader.module_repr�)importlib.abc.PathEntryFinder.find_loader�)importlib.abc.PathEntryFinder.find_modulezasyncio.tasks.async>�
fractions.gcd�
platform.dist�inspect.getcallargs�inspect.formatargspec�platform.linux_distributionz4importlib._bootstrap_external.FileLoader.load_modulez_ssl.RAND_pseudo_bytes>�aifc.openfp�wave.openfp�sunau.openfp�
locale.format�ssl.wrap_socket�ssl.match_hostname�asyncio.Task.all_task�asyncio.Task.current_task�sys.get_coroutine_wrapper�sys.set_coroutine_wrapper�threading.Thread.isAlive>�gettext.lgettext�gettext.ldgettext�gettext.lngettext�gettext.ldngettext�gettext.bind_textdomain_codeset�'gettext.NullTranslations.output_charset�+gettext.NullTranslations.set_output_charsetr�>�binascii.a2b_hqx�binascii.b2a_hqx�binascii.rlecode_hqx�binascii.rledecode_hqx>�cgi.log�pathlib.Path.link_to�threading.Event.isSet�threading.activeCount�threading.currentThread�threading.Thread.getName�threading.Thread.setName�threading.Thread.isDaemon�threading.Thread.setDaemon�_sqlite3.enable_shared_cache�threading.Condition.notifyAll� importlib.abc.Finder.find_module�!zipimport.zipimporter.find_loader�!zipimport.zipimporter.find_module�!zipimport.zipimporter.load_module>	�re.template�locale.resetlocale�unittest.makeSuite�unittest.findTestCases�locale.getdefaultlocale�unittest.getTestCaseNames�$unittest.TestLoader.getTestCaseNames�'unittest.TestLoader.loadTestsFromModule�)unittest.TestLoader.loadTestsFromTestCase)
)r2rr)r2r.r�r2r%rr:r;)r2r"r")r2r#r)r2rSr)r2rTrr1r4)r2�
r�r2�r)rr%r2zdict[int, DeprecationDict]�DEPRECATED_METHODS�configparser�LegacyInterpolation�SafeConfigParser�Finder�ImpImporter�	ImpLoader>r�Sized�Mapping�Callable�Hashabler�Iterator�KeysView�Sequence�	Awaitable�	Container�	Coroutine�	Generator�	ItemsView�
ByteString�
Collection�
MutableSet�
Reversible�
ValuesView�MappingView�
AsyncIterable�
AsyncIterator�AsyncGenerator�MutableMapping�MutableSequence)z
importlib.abc�pkgutil�collections�smtpd�MailmanProxy�Text�MacOSX)�typing�
webbrowser)r�r:r4r�z/dict[tuple[int, int, int], dict[str, set[str]]]�DEPRECATED_CLASSES�moder�returnrc�P�t|t��sdSt|��}d}d|v}|t|��z
s t|��t|��krdSd|v}d|v}d|v}d|v}d|v}d	|vr
|s|s|rdSd
}|r|rdS||z|z|z}	|	dkrdS|s|s|s|sdSd
S)NFzrwatb+Uxr�r�w�a�t�b�UTr.)�
isinstance�str�set�len)
r��modes�_mode�creating�reading�writing�	appending�text�binary�totals
          �g/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/pylint/checkers/stdlib.py�_check_mode_strr�?s���d�C� � ���u���I�I�E��E��e�|�H��s�5�z�z���S��Y�Y��U���3�3��u��U�l�G��U�l�G��u��I��%�<�D�
�E�\�F�
�e�|�|��	�i�	�8�	��5��������u��g��	�)�H�4�E��q�y�y��u���w��)��x���u��4�c�l�eZdZUdZiej�ej�ej�ej�ddddddifdd	d
ddd
dddddddddddgifd��Z	de
d<d]d �Zd^d#�Zd^d$�Z
d^d%�Zd^d&�Zejd'd(d)d*d+d,d-d.d/d0d1d2d3�
�
d^d4���Zejd��d_d6���Zejd��d`d8���Zejd��dad:���Zejd��dbd<���Zejdd=d>��dcd@���ZdcdA�ZdcdB�ZdddE�ZdedG�ZdfdK�ZdgdL�ZdhdR�ZdidT�ZdjdW�Z dkdZ�Z!dld[�Z"d\S)m�
StdlibChecker�stdlib)z""%s" is not a valid mode for open.�
bad-open-modez�Python supports: r, w, a[, x] modes with b, +, and U (only with r) options. See https://docs.python.org/3/library/functions.html#openz)Using datetime.time in a boolean context.�boolean-datetimez�Using datetime.time in a boolean context can hide subtle bugs when the time they represent matches midnight UTC. This behaviour was fixed in Python 3.5. See https://bugs.python.org/issue13936 for reference.�
maxversion)r2r#)z*Redundant use of %s with constant value %r�redundant-unittest-assertz�The first argument of assertTrue and assertFalse is a condition. If a constant is passed as parameter, that condition will be always true. In this case a warning should be emitted.)z*threading.Thread needs the target function�bad-thread-instantiationz�The warning is emitted when a threading.Thread class is instantiated without the target function being passed as a kwarg or as a second argument. By default, the first parameter is the group param, not the target param.)z;Using copy.copy(os.environ). Use os.environ.copy() instead.�shallow-copy-environz�os.environ is not a dict object but proxy object, so shallow copy has still effects on original object. See https://bugs.python.org/issue15373 for reference.)z$%s does not support %s type argument�invalid-envvar-valuezwEnv manipulation functions support only string type arguments. See https://docs.python.org/3/library/os.html#os.getenv.)z[singledispatch decorator should not be used with methods, use singledispatchmethod instead.�singledispatch-methodzrsingledispatch should decorate functions and not class/instance methods. Use singledispatchmethod for those cases.)z]singledispatchmethod decorator should not be used with functions, use singledispatch instead.�singledispatchmethod-functionzrsingledispatchmethod should decorate class/instance methods and not functions. Use singledispatch for those cases.)z,%s default type is %s. Expected str or None.�invalid-envvar-defaultz�Env manipulation functions return None or str values. Supplying anything different as a default may cause bugs. See https://docs.python.org/3/library/os.html#os.getenv.)zGUsing preexec_fn keyword which may be unsafe in the presence of threads�subprocess-popen-preexec-fna0The preexec_fn parameter is not safe to use in the presence of threads in your application. The child process could deadlock before exec is called. If you must use it, keep it trivial! Minimize the number of libraries you call into. See https://docs.python.org/3/library/subprocess.html#popen-constructor)zH'subprocess.run' used without explicitly defining the value for 'check'.�subprocess-run-checkz�The ``check`` keyword  is set to False by default. It means the process launched by ``subprocess.run`` can exit with a non-zero exit code and fail silently. It's better to set it explicitly to make clear what the error-handling behavior is.)z4Using open without explicitly specifying an encoding�unspecified-encodingz�It is better to specify an encoding when opening documents. Using the system default implicitly can create problems on other operating systems. See https://peps.python.org/pep-0597/)zLLeaving functions creating breakpoints in production code is not recommended�forgotten-debug-statementz�Calls to breakpoint(), sys.breakpointhook() and pdb.set_trace() should be removed from code that is not actively being debugged.zc'lru_cache(maxsize=None)' or 'cache' will keep all method args alive indefinitely, including 'self'�method-cache-max-size-noneaOBy decorating a method with lru_cache or cache the 'self' argument will be linked to the function and therefore never garbage collected. Unless your instance will never need to be garbage collected (singleton) it is recommended to refactor code to avoid this pattern or add a maxsize to the cache. The default value for maxsize is 128.�	old_names)�W1516zlru-cache-decorating-method)�W1517zcache-max-size-none)�W1501�W1502�W1503�W1506�W1507�E1507�E1519�E1520�W1508�W1509�W1510�W1514�W1515�W1518z!dict[str, MessageDefinitionTuple]�msgs�linterrr��Nonec��tj||��t��|_i|_i|_t��|_ttj	d�
��D]/\}}|tj	kr|j�|���0t�
��D]/\}}|tj	kr|j�|���0t�
��D]/\}}|tj	kr|j�|���0t�
��D]/\}}|tj	kr|j�|���0dS)Nr)r�__init__r��_deprecated_methods�_deprecated_arguments�_deprecated_classes�_deprecated_decoratorsr��sys�version_info�items�updater6r�r=)�selfr�
since_vers�	func_list�	args_list�
class_list�decorator_lists       r�rzStdlibChecker.__init__�sp����T�6�*�*�*�-0�U�U�� �TV��"�8:�� �03����#�%7��8H��8K�%L�%R�%R�%T�%T�	;�	;�!�J�	��S�-�-�-��(�/�/�	�:�:�:��%9�%?�%?�%A�%A�	=�	=�!�J�	��S�-�-�-��*�1�1�)�<�<�<��&8�&>�&>�&@�&@�	<�	<�"�J�
��S�-�-�-��(�/�/�
�;�;�;��*?�*E�*E�*G�*G�	C�	C�&�J���S�-�-�-��+�2�2�>�B�B�B��	C�	Cr��node�
nodes.Callc���d�|jD��}d|vrdSt|j��dkr/|jrd|vr&|�d|t
j���dSdSdS)Nc��h|]	}|j��
S���arg)�.0�keys  r��	<setcomp>z@StdlibChecker._check_bad_thread_instantiation.<locals>.<setcomp>�s��8�8�8�3�s�w�8�8�8r��targetr%r��r+�
confidence)�keywordsr��args�kwargs�add_messager
�HIGH)r%r+�func_kwargss   r��_check_bad_thread_instantiationz-StdlibChecker._check_bad_thread_instantiation�s���8�8�$�-�8�8�8���{�"�"��F��t�y�>�>�A���t�{��h�k�6Q�6Q����*��*�/�
�
�
�
�
�
���6Q�6Qr�c�p�|jr,|jD]&}|jdkr|�d|����%dSdS)N�
preexec_fnr�r+)r8r1r;)r%r+�keywords   r��_check_for_preexec_fn_in_popenz,StdlibChecker._check_for_preexec_fn_in_popen�s`���=�	O��=�
O�
O���;�,�.�.��$�$�%B��$�N�N�N��	O�	O�
O�
Or�c�r�d�|jpdD��}d|vr|�d|t���dSdS)Nc��h|]	}|j��
Sr/r0�r2rBs  r�r4z;StdlibChecker._check_for_check_kw_in_run.<locals>.<setcomp>�s��C�C�C�'�'�+�C�C�Cr�r/�checkrr6)r8r;r)r%r+r:s   r��_check_for_check_kw_in_runz(StdlibChecker._check_for_check_kw_in_run�sQ��C�C�d�m�.A�r�C�C�C���&� � ����3�$�9��U�U�U�U�U�!� r�c��tj|d���}	|���}n#tj$rYdSwxYw|D]9}|���tkr|�d|���dS�:dS)Nr)�positionr�rA)r�get_argument_from_call�inferred�astroid�InferenceError�qname�
OS_ENVIRONr;)r%r+r1�
inferred_argsrLs     r��_check_shallow_copy_environz)StdlibChecker._check_shallow_copy_environs����*�4�!�<�<�<��	��L�L�N�N�M�M���%�	�	�	��F�F�	����%�	�	�H��~�~���:�-�-�� � �!7�d� �C�C�C����.�	�	s�-�A�Ar�r�zdeprecated-methodzdeprecated-argumentr�r�r�rrrzdeprecated-classrrc��|�|��tj|j��D�]O}t	|t
j��r�|���jtvr�d}t	|jtj��r|jj}t	|jtj��r|jj
}|tvr.|�||���j|���nj|���jt kr|�||���n0t	|tj��rf|���t(kr|�|��n�|���t,kr|�|��n�t	|tj��r�|���}|t2kr|�|��na|t6vr|�||��nA|t:kr|�|��n |t>vr|� d|���|�!||����QdS)zVisit a Call node.NrrA)"�check_deprecated_class_in_callr�	infer_allr'r�r�UninferableBase�root�name�OPEN_MODULEr
�Name�	Attribute�attrname�OPEN_FILES_FUNCS�_check_open_call�
UNITTEST_CASE�_check_redundant_assert�ClassDefrO�THREADING_THREADr>�SUBPROCESS_POPENrC�FunctionDef�	COPY_COPYrR�ENV_GETTERS�_check_env_function�SUBPROCESS_RUNrH�DEBUG_BREAKPOINTSr;�check_deprecated_method)r%r+rL�open_func_namerXs     r��
visit_callzStdlibChecker.visit_callsG��"	
�+�+�D�1�1�1����	�2�2�	9�	9�H��(�D�$8�9�9�
���}�}���#�{�2�2�-1���d�i���4�4�4�%)�Y�^�N��d�i���9�9�8�%)�Y�%7�N�!�%5�5�5��)�)�$��
�
���0D�n�U�U�U�������%��6�6��,�,�T�8�<�<�<�<��H�e�n�5�5�
M��>�>�#�#�'7�7�7��8�8��>�>�>�>��^�^�%�%�)9�9�9��7�7��=�=�=���H�e�&7�8�8�	
M��~�~�'�'���9�$�$��4�4�T�:�:�:�:��[�(�(��,�,�T�8�<�<�<�<��^�+�+��3�3�D�9�9�9�9��.�.�.��$�$�%@�t�$�L�L�L��(�(��x�8�8�8�8�9	9�	9r��
nodes.UnaryOpc�T�|jdkr|�|j��dSdS)N�not)�op�_check_datetime�operand�r%r+s  r��
visit_unaryopzStdlibChecker.visit_unaryop<s3���7�e���� � ���.�.�.�.�.��r��nodes.Ifc�:�|�|j��dS�N�rq�testrss  r��visit_ifzStdlibChecker.visit_ifA������T�Y�'�'�'�'�'r��nodes.IfExpc�:�|�|j��dSrwrxrss  r��visit_ifexpzStdlibChecker.visit_ifexpEr{r��nodes.BoolOpc�D�|jD]}|�|���dSrw)�valuesrq)r%r+�values   r��visit_boolopzStdlibChecker.visit_boolopIs4���[�	(�	(�E�� � ��'�'�'�'�	(�	(r�r�r�nodes.FunctionDefc��|jrKt|jtj��r.|�|��|�|��dSdSdSrw)�
decoratorsr��parentr
ra�_check_lru_cache_decorators�_check_dispatch_decoratorsrss  r��visit_functiondefzStdlibChecker.visit_functiondefNse���?�	2�z�$�+�u�~�F�F�	2��,�,�T�2�2�2��+�+�D�1�1�1�1�1�	2�	2�	2�	2r�c���td�|j���D����rdSg}|jjD]�}	|���D]�}|���}|tvrdS|tvr�t|tj
��ri	tj|dd���}n#tj
$rYn\wxYwt|tj��r|j�n5|�|��n|dkr|�|��n�͌�#t"j$rY��wxYw|D]$}|�d|t(j����%dS)	zACheck if instance methods are decorated with functools.lru_cache.c3�>K�|]}tj|��V��dSrw)r�is_enum)r2�ancestors  r��	<genexpr>z<StdlibChecker._check_lru_cache_decorators.<locals>.<genexpr>Zs,����O�O�8�u�}�X�&�&�O�O�O�O�O�Or�Nr�maxsize�rJrBzfunctools.cacherr6)�anyr��	ancestorsr�r
�inferrO�NON_INSTANCE_METHODS�	LRU_CACHEr��CallrrK�NoSuchArgumentError�Constr��appendrMrNr;r
r)r%r+�lru_cache_nodes�d_node�infered_node�q_namer1�lru_cache_nodes        r�r�z)StdlibChecker._check_lru_cache_decoratorsXs����O�O�t�{�7L�7L�7N�7N�O�O�O�O�O�	��F�.0���o�+�	�	�F�
�$*�L�L�N�N���L�)�/�/�1�1�F��!5�5�5�������*�*�z�&�%�*�/M�/M�*�"�"'�">� &��I�#�#�#�C�C�� %�8�"�"�"�!�E�E�"���� *�#�u�{�;�;�"�s�y�?T�!�E�'�.�.�v�6�6�6����!2�2�2�'�.�.�v�6�6�6���3����)�
�
�
���
����-�	�	�N����,�#�%�/�
�
�
�
�
�	�	s=�4D&�;#D&�B7�6D&�7C
�D&�	C
�
AD&�&D8�7D8c��i}|jjD]�}t|tj��r|jr|t
jf||j<�:tj|��r|t
j	f|d<�`tj
|��r|t
j	f|d<��d|vr6d|vr2|�d|dd|dd���dSd|vr6d|vr4|�d	|dd|dd���dSdSdS)
N�singledispatch�singledispatchmethod�classmethodr�rr.r6�staticmethodr)r�r
r�rZrXr
r<r�(is_registered_in_singledispatch_functionr�.is_registered_in_singledispatchmethod_functionr;)r%r+�decorators_map�	decorators    r�r�z(StdlibChecker._check_dispatch_decorators�sj��PR����.�		�		�I��)�U�Z�0�0�
�Y�^�
�2;�Z�_�1M��y�~�.�.��?��E�E�
�4=�z�?S�3T��/�0�0��E�d�K�K�
���(�:��5�6��
�~�-�-�-�>�2Q�2Q����'�#�$4�5�a�8�)�*:�;�A�>�
�
�
�
�
�
�
#�n�4�4��.�0�0����/�#�$:�;�A�>�)�*@�A�!�D�
�
�
�
�
�
�
5�4�0�0r�r�rc��t|tj��rf|jrat|jdtj��r>|jdvr7|�d|j|jdjf|���dSdSdSdSdS)Nr>�
assertTrue�assertFalser�)r9r+)	r�rM�BoundMethodr9r
r�rXr;r�)r%r+r�s   r�r`z%StdlibChecker._check_redundant_assert�s����u�g�1�2�2�
	��	�
	��4�9�Q�<���5�5�
	��
�;�;�;����+��j�$�)�A�,�"4�5��
�
�
�
�
�
�
	�
	�
	�
	�
	�
	�<�;r��nodes.NodeNGc��	t|�����}n#tj$rYdSwxYwt	|tj��r1|���dkr|�d|���dSdSdS)zICheck that a datetime was inferred, if so, emit boolean-datetime warning.Nz
datetime.timer�rA)�nextr�rMrNr��InstancerOr;)r%r+rLs   r�rqzStdlibChecker._check_datetime�s���	��D�J�J�L�L�)�)�H�H���%�	�	�	��F�F�	����
�x��!1�2�2�	<���� � �O�3�3����/�d��;�;�;�;�;�		<�	<�3�3s�!$�7�7�open_moduler��	func_namec�:�d}	|dkrtj|dd���}n|dkrtj|dd���}n#tj$rYnwxYw|r|tj|��}|tvr_t|tj��rEt|j	��s1|�
d||j	pt|j	���	��|r9t|tj���r#|j	rd
t|j	��v�rd}	|dkrh|jj
dkrtj|dd���}nW|jj
d
krtj|dd���}n/tj|dd���}ntj|dd���}n,#tj$r|�
d|���YnwxYw|rRtj|��}t|tj��r&|j	�!|�
d|���dSdSdSdSdSdS)z Various checks for an open call.Nrr.r�r�rrr��r+r9r�r�encodingrr%r2rrA)rrKr��
safe_infer�OPEN_FILES_MODEr�r
r�r�r�r;r�r'r\)r%r+r�r��mode_arg�encoding_args      r�r^zStdlibChecker._check_open_call�s�����
	��e�#�#� �7��1�f�������	�)�)� �7��1�f��������(�	�	�	��D�	�����	��'��1�1�H��_�,�,��x���5�5�-�'���7�7�-�� � �#��!��>�3�x�~�+>�+>�!�����	H��(�E�K�0�0�	H��^�	H�(+�#�h�n�2E�2E�'E�'E��L�
D��)�+�+��y�)�[�8�8�',�'C� �1�j�(�(�(�����+�|�;�;�',�'C� �1�j�(�(�(���(-�'C� �1�j�(�(�(���$)�#?��q�*�$�$�$�L����,�
D�
D�
D�� � �!7�d� �C�C�C�C�C�
D�����
H�$�/��=�=���l�E�K�8�8�H�\�=O�=W��$�$�%;�$�$�G�G�G�G�G�?	H�	H�(F�'E�0
H�
H�H�H�=W�=Ws$�;A�A�A�BF�&G�?Gc��d}d}|jrd�|jD��}nd}|jr|jd}n|r
||vr	||}nd}|r,|�|dtj|��|d���t|j��dkr|jd	}n|r
||vr	||}nd}|r.|�||d
tj|��d���dSdS)
Nr3�defaultc�(�i|]}|j|j��Sr/)r1r�rFs  r��
<dictcomp>z5StdlibChecker._check_env_function.<locals>.<dictcomp>�s��N�N�N�W�g�k�7�=�N�N�Nr�rr�F)r+�message�call_argr��
allow_noner%r.rT)r+r�r�r�r�)r8r9�_check_invalid_envvar_valuerr�r�)r%r+r��env_name_kwarg�env_value_kwargr:�env_name_arg�
env_value_args        r�rgz!StdlibChecker._check_env_function�sC����#���=�	�N�N��
�N�N�N�F�F��F��9�	 ��9�Q�<�L�L�
�	 ��&�0�0�!�.�1�L�L��L��	��,�,��.��)�,�7�7�� �
-�
�
�
��t�y�>�>�Q��� �I�a�L�M�M�
�	!��6�1�1�"�?�3�M�M� �M��	��,�,���0��)�-�8�8��
-�
�
�
�
�
�	�	r�r�r��InferenceResult | Noner�rc��|�t|tj��rdS|���}t|tj��r[d}|j�|}nt|jt��sd}|r.|�||||�	��f���dSdS|�||||�	��f���dS)NFTr�)
r�rrVrOr
r�r�r�r;�pytype)r%r+r�r�r�r�rX�emits        r�r�z)StdlibChecker._check_invalid_envvar_value s�����z�(�D�4H�I�I���F��{�{�}�}���h���,�,�		Q��D��~�%�%�~�������4�4�
����
U�� � ��t�4����AR�AR�:S� �T�T�T�T�T�
U�
U�
���W�4�t�X�_�_�=N�=N�6O��P�P�P�P�Pr��set[str]c��|jSrw)r�r%s r��deprecated_methodsz StdlibChecker.deprecated_methods7s���'�'r��method�"tuple[tuple[int | None, str], ...]c�8�|j�|d��S�Nr/)r�get)r%r�s  r��deprecated_argumentsz"StdlibChecker.deprecated_arguments:s���)�-�-�f�b�9�9�9r��module�
Iterable[str]c�8�|j�|d��Sr�)rr�)r%r�s  r��deprecated_classesz StdlibChecker.deprecated_classes=s���'�+�+�F�B�7�7�7r�c��|jSrw)r r�s r��deprecated_decoratorsz#StdlibChecker.deprecated_decorators@s���*�*r�N�rrr�r)r+r,r�r)r+rmr�r)r+rur�r)r+r|r�r)r+rr�r)r+r�r�r)r+r,r�rr�r)r+r�r�r)r+r,r�r�r�r�r�r)r+r,r�r�r�r)r+r,r�r�r�r�r�r�r�rr�r)r�r�)r�r�r�r�)r�r�r�r�)r�r�)#�__name__�
__module__�__qualname__rXr�DEPRECATED_METHOD_MESSAGE�DEPRECATED_ARGUMENT_MESSAGE�DEPRECATED_CLASS_MESSAGE�DEPRECATED_DECORATOR_MESSAGEr�__annotations__rr>rCrHrRr�only_required_for_messagesrlrtrzr~r�r�r�r�r`rqr^rgr�r�r�r�r�r/r�r�r�r�]s���������D�t/�
�
3�t/�
�
5�t/��
2�t/��
6�	t/�

�
8��
D��6�"�
�
�
�
�
�
�
�
�	
�
�
�
�
r�(�
4��<�4��
�
�Kt/�t/�t/�D�t�t�t�t�lC�C�C�C�,����O�O�O�O�V�V�V�V�
	�	�	�	�&�U�%��#���"��� �%����#���9�9�9���9�B&�U�%�&8�9�9�/�/�/�:�9�/�&�U�%�&8�9�9�(�(�(�:�9�(�&�U�%�&8�9�9�(�(�(�:�9�(�&�U�%�&8�9�9�(�(�(�:�9�(�&�U�%�$��'���
2�2�2���
2�
(�(�(�(�T����<����
<�
<�
<�
<�>H�>H�>H�>H�@%�%�%�%�NQ�Q�Q�Q�.(�(�(�(�:�:�:�:�8�8�8�8�+�+�+�+�+�+r�r�rrrc�J�|�t|����dSrw)�register_checkerr�)rs r��registerr�Ds$��
���M�&�1�1�2�2�2�2�2r�)r�rr�rr�)5�__doc__�
__future__rr!�collections.abcrr�rrrrr	rMr
r�astroid.typingr�pylintr
�pylint.checkersrrr�pylint.interfacesr�
pylint.typingr�pylint.lintrrr�r<r�r]r_rbrerPrfrcrhrYrir�r�r6r�r=r�r�r�r�r�r/r�r��<module>r�sJ��
7�6�6�"�"�"�"�"�"�
�
�
�
�$�$�$�$�$�$�7�7�7�7�7�7�7�7�7�7�7�7�7�7�������������*�*�*�*�*�*�������?�?�?�?�?�?�?�?�?�?�'�'�'�'�'�'�0�0�0�0�0�0��%�$�$�$�$�$�$��u�S�#�s�]�+�S��X�5�6��"��"�%@�@���
�%���	�
�
���%��!���i� ��R��
�
�
�	�
0�1G�H�������
��0��� 1��	� 1��	!�"3�	�
	�/��	%�&7�
�	4�5F��	5�n��	�0��	�,��	"�#4��	�;��	"�#4��	#�$5��	�,�� 	�0�!�"	�+�#�$.C�?N�AP�.C�9N�2Q�?
�1���:(�)9�:�G$�$��&�&�&�&�R$�$����
3�3�*�*������	�
�
�
�
�
�
�
�

�

�

���*
�
�
�$
�
�
�
�
�
�	
�	
�	
�

�

�

�*�*�
�
�
�
C�$�
�
�
�
�	
�	
�	
�
�
�
�
�
�
�"

�

�

�e}�}�A^2�^2��^�^�^�^�F	�!��
��
�
�
��
�
�
�
�#�#�J	��
��
�
�
�
�	��a8G�8G��8�8�8�8�v����<d+�d+�d+�d+�d+�O�[�d+�d+�d+�N3�3�3�3�3�3r�

Hacked By AnonymousFox1.0, Coded By AnonymousFox