
    c}                       U d Z 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
mZ ddlZddlmZ ddlmZ ddlmZ dd	lmZmZmZ dd
lmZ ddlmZ erddlmZ e	eeeef         e
e         f         ZdZedz   Z dZ!dZ"dZ#dZ$dZ%dZ&dZ'ddhZ(dZ)h dZ*ddhZ+ddddi dd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;id<Z,d=e-d><   d?hh d@dAhdBZ.dCe-dD<   dEh dFih dGh dHdIh dJh dKh dLh dMh dNdOhh dPdQdRhh dSh dTh dUh dVh dWdXdYZ/dZe-d[<   d\d]d^hid_hd`dahh dbdcdddehidfhdghdhdiZ0dje-dk<   dwdpZ1 G dq dree          Z2dxdvZ3dS )yz0Checkers for various standard library functions.    )annotationsN)Iterable)TYPE_CHECKINGAnyDictSetTuple)nodes)InferenceResult)
interfaces)BaseCheckerDeprecatedMixinutils)	INFERENCE)MessageDefinitionTuple)PyLinter)openfile)	read_text
write_textzunittest.casezthreading.Threadz	copy.copyzos._Environ)z	os.getenvzsubprocess.Popenzsubprocess.run_iopathlib)zbuiltins.breakpointzsys.breakpointhookzpdb.set_trace>   functools.lru_cache$functools._lru_cache_wrapper.wrapper'functools.lru_cache.decorating_functionzbuiltins.staticmethodzbuiltins.classmethod))Nx)intboolfloatzasyncio.tasks.sleep))Nloopzasyncio.tasks.gatherzasyncio.tasks.shieldzasyncio.tasks.wait_forzasyncio.tasks.waitzasyncio.tasks.as_completedz)asyncio.subprocess.create_subprocess_execz*asyncio.subprocess.create_subprocess_shell))   r    zgettext.translation))   codesetzgettext.install))   r#   zfunctools.partialmethod)Nfunczweakref.finalize)r%   )Nobjzprofile.Profile.runcallzcProfile.Profile.runcallzbdb.Bdb.runcallztrace.Trace.runfunczcurses.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.createzrandom.Random.shuffle))   random)r   r   r         r   r1   	   r   zIdict[tuple[int, int, int], dict[str, tuple[tuple[int | None, str], ...]]]DEPRECATED_ARGUMENTSzasyncio.coroutine>   abc.abstractpropertyabc.abstractclassmethodabc.abstractstaticmethodz importlib.util.module_for_loader)r0   r1   r1   r   r1   r!   r   DeprecationDictDEPRECATED_DECORATORSr/   >   cgi.parse_qscgi.parse_qslctypes.c_buffertkinter.Misc.tk_menuBar tkinter.Menu.tk_bindForTraversal,distutils.command.sdist.sdist.check_metadata2distutils.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.readfprN   rO   rP   rQ   >   
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_modulezasyncio.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))r1   r   r   )r1   r-   r   r1   r$   r   r9   r:   )r1   r!   r!   )r1   r"   r   )r1   rR   r   )r1   rS   r   r0   r3   )r1   
   r   r1      r   )r   r$   r1   zdict[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   r9   r3   r   z/dict[tuple[int, int, int], dict[str, set[str]]]DEPRECATED_CLASSESmoder   returnr   c                P   t          | t                    sdS t          |           }d}d|v }|t          |          z
  s t          |           t          |          k    rdS d|v }d|v }d|v }d|v }d|v }d	|v r
|s|s|rdS d
}|r|rdS ||z   |z   |z   }	|	dk    rdS |s|s|s|sdS d
S )NFzrwatb+Uxr   rwatbUTr-   )
isinstancestrsetlen)
r   modes_modecreatingreadingwriting	appendingtextbinarytotals
             6lib/python3.11/site-packages/pylint/checkers/stdlib.py_check_mode_strr   ?  s   dC   uIIEEe|Hs5zz SYYU3 uUlGUlGuI%<DE\F
e|  	i 	8 	5  ug	)H4Eqy u w ) x u4    c                  l   e Zd ZU dZi ej        ej        ej        ej        ddddddifdd	d
ddddddddddddddgifdZ	de
d<   d]d Zd^d#Zd^d$Zd^d%Zd^d&Z ej        d'd(d)d*d+d,d-d.d/d0d1d2d3          d^d4            Z ej        d          d_d6            Z ej        d          d`d8            Z ej        d          dad:            Z ej        d          dbd<            Z ej        dd=d>          dcd@            ZdcdAZdcdBZdddEZdedGZdfdKZdgdLZdhdRZdidTZdjdWZ dkdZZ!dld[Z"d\S )mStdlibCheckerstdlib)z""%s" is not a valid mode for open.bad-open-modezPython 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-datetimezUsing 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)r1   r"   )z*Redundant use of %s with constant value %rredundant-unittest-assertzThe 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-instantiationzThe 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-environzos.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-defaultzEnv 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-fna0  The 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-checkzThe ``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-encodingzIt 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-statementzCalls 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-noneaO  By 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)W1516zlru-cache-decorating-method)W1517zcache-max-size-none)W1501W1502W1503W1506W1507E1507E1519E1520W1508W1509W1510W1514W1515W1518z!dict[str, MessageDefinitionTuple]msgslinterr   r   Nonec                   t          j        | |           t                      | _        i | _        i | _        t                      | _        t          t          j	        d                  
                                D ]/\  }}|t          j	        k    r| j                            |           0t          
                                D ]/\  }}|t          j	        k    r| j                            |           0t          
                                D ]/\  }}|t          j	        k    r| j                            |           0t          
                                D ]/\  }}|t          j	        k    r| j                            |           0d S )Nr   )r   __init__r   _deprecated_methods_deprecated_arguments_deprecated_classes_deprecated_decoratorsr   sysversion_infoitemsupdater5   r   r<   )selfr  
since_vers	func_list	args_list
class_listdecorator_lists          r   r  zStdlibChecker.__init__  sy   T6***-0UU 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-- C+22>BBB	C 	Cr   node
nodes.Callc                    d |j         D             }d|v rd S t          |j                  dk     r/|j        rd|vr&|                     d|t
          j                   d S d S d S )Nc                    h | ]	}|j         
S  arg).0keys     r   	<setcomp>z@StdlibChecker._check_bad_thread_instantiation.<locals>.<setcomp>  s    8883sw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ty>>A 	t{ 	hk6Q 	**/      	 	 	 	r   c                p    |j         r,|j         D ]&}|j        dk    r|                     d|           %d S d S )N
preexec_fnr  r*  )r7  r0  r:  )r$  r*  keywords      r   _check_for_preexec_fn_in_popenz,StdlibChecker._check_for_preexec_fn_in_popen  sc    = 	O= O O;,. O$$%B$NNN	O 	OO Or   c                r    d |j         pdD             }d|vr|                     d|t                     d S d S )Nc                    h | ]	}|j         
S r.  r/  r1  rA  s     r   r3  z;StdlibChecker._check_for_check_kw_in_run.<locals>.<setcomp>  s    CCC''+CCCr   r.  checkr  r5  )r7  r:  r   )r$  r*  r9  s      r   _check_for_check_kw_in_runz(StdlibChecker._check_for_check_kw_in_run  sX    CCdm.ArCCC&  	V3$9UUUUU	V 	Vr   c                   t          j        |d          }	 |                                }n# t          j        $ r Y d S w xY w|D ]9}|                                t          k    r|                     d|            d S :d S )Nr   )positionr   r@  )r   get_argument_from_callinferredastroidInferenceErrorqname
OS_ENVIRONr:  )r$  r*  r0  inferred_argsrK  s        r   _check_shallow_copy_environz)StdlibChecker._check_shallow_copy_environ  s    *4!<<<	LLNNMM% 	 	 	FF	% 	 	H~~:-   !7d CCC	 	s   - A A r   r   zdeprecated-methodzdeprecated-argumentr   r   r   r   r  r  zdeprecated-classr  r  c                   |                      |           t          j        |j                  D ]C}|t          j        u r|                                j        t          v rd}t          |j        t          j                  r|j        j        }t          |j        t          j                  r|j        j        }|t          v r.|                     ||                                j        |           nj|                                j        t           k    r|                     ||           n0t          |t          j                  rf|                                t(          k    r|                     |           n|                                t,          k    r|                     |           nt          |t          j                  r|                                }|t2          k    r|                     |           na|t6          v r|                     ||           nA|t:          k    r|                     |           n |t>          v r|                      d|           | !                    ||           EdS )zVisit a Call node.Nr  r@  )"check_deprecated_class_in_callr   	infer_allr&   rL  UninferablerootnameOPEN_MODULEr   r
   Name	AttributeattrnameOPEN_FILES_FUNCS_check_open_callUNITTEST_CASE_check_redundant_assertClassDefrN  THREADING_THREADr=  SUBPROCESS_POPENrB  FunctionDef	COPY_COPYrQ  ENV_GETTERS_check_env_functionSUBPROCESS_RUNrG  DEBUG_BREAKPOINTSr:  check_deprecated_method)r$  r*  rK  open_func_namerW  s        r   
visit_callzStdlibChecker.visit_call  s[   " 	++D111	22 	9 	9H7.. }}#{2 M-1di44 4%)Y^Ndi99 8%)Y%7N!%55 V))$0DnUUU%6 M,,T8<<<<Hen55 M>>##'77 >88>>>>^^%%)99 >77===He&788 	M~~''9$ M44T::::[( M,,T8<<<<^+ M33D9999.. M$$%@t$LLL((x88889	9 	9r   nodes.UnaryOpc                T    |j         dk    r|                     |j                   d S d S )Nnot)op_check_datetimeoperandr$  r*  s     r   visit_unaryopzStdlibChecker.visit_unaryop<  s7    7e 	/  .....	/ 	/r   nodes.Ifc                :    |                      |j                   d S Nrp  testrr  s     r   visit_ifzStdlibChecker.visit_ifA      TY'''''r   nodes.IfExpc                :    |                      |j                   d S rv  rw  rr  s     r   visit_ifexpzStdlibChecker.visit_ifexpE  rz  r   nodes.BoolOpc                D    |j         D ]}|                     |           d S rv  )valuesrp  )r$  r*  values      r   visit_boolopzStdlibChecker.visit_boolopI  s4    [ 	( 	(E  ''''	( 	(r   r   r   nodes.FunctionDefc                    |j         rKt          |j        t          j                  r.|                     |           |                     |           d S d S d S rv  )
decoratorsr   parentr
   r`  _check_lru_cache_decorators_check_dispatch_decoratorsrr  s     r   visit_functiondefzStdlibChecker.visit_functiondefN  se     ? 	2z$+u~FF 	2,,T222++D11111	2 	2 	2 	2r   c                   t          d |j                                        D                       rdS g }|j        j        D ]}	 |                                D ]}|                                }|t          v r  dS |t          v rt          |t          j
                  ri	 t          j        |dd          }n# t          j        $ r Y  n\w xY wt          |t          j                  r|j         n5|                    |            n|dk    r|                    |            n͌# t"          j        $ r Y w xY w|D ]$}|                     d|t(          j                   %dS )	zACheck if instance methods are decorated with functools.lru_cache.c              3  >   K   | ]}t          j        |          V  d S rv  )r   is_enum)r1  ancestors     r   	<genexpr>z<StdlibChecker._check_lru_cache_decorators.<locals>.<genexpr>Z  s,      OO8u}X&&OOOOOOr   Nr   maxsizerI  rA  zfunctools.cacher  r5  )anyr  	ancestorsr  r
   inferrN  NON_INSTANCE_METHODS	LRU_CACHEr   Callr   rJ  NoSuchArgumentErrorConstr  appendrL  rM  r:  r   r   )r$  r*  lru_cache_nodesd_nodeinfered_nodeq_namer0  lru_cache_nodes           r   r  z)StdlibChecker._check_lru_cache_decoratorsX  s   OOt{7L7L7N7NOOOOO 	F.0o+ 	 	F$*LLNN  L)//11F!55  * z&%*/M/M ""'"> &I# # #CC  %8 " " "!EE"  *#u{;; "sy "!E'..v666!22 '..v666 )   - 	 	N,#%/     	 	s=   4D&;#D&B76D&7C
D&	C

AD&&D87D8c                   i }|j         j        D ]}t          |t          j                  r|j        r|t
          j        f||j        <   :t          j        |          r|t
          j	        f|d<   `t          j
        |          r|t
          j	        f|d<   d|v r6d|v r2|                     d|d         d         |d         d                    d S d|v r6d|v r4|                     d	|d         d         |d         d                    d S d S d S )
Nsingledispatchsingledispatchmethodclassmethodr   r   r-   r5  staticmethodr   )r  r
   r   rY  rW  r   r;  r   (is_registered_in_singledispatch_functionr   .is_registered_in_singledispatchmethod_functionr:  )r$  r*  decorators_map	decorators       r   r  z(StdlibChecker._check_dispatch_decorators  sz   PR. 		 		I)UZ00 Y^ 2;Z_1My~..?EE 4=z?S3T/00EdKK (:56
 ~- 	->2Q 	'#$45a8)*:;A>       #n4	.0	 /#$:;A>)*@A!D      		 	 	 	r   r  r   c                   t          |t          j                  rf|j        rat          |j        d         t          j                  r>|j        dv r7|                     d|j        |j        d         j        f|           d S d S d S d S d S )Nr   >   
assertTrueassertFalser   )r8  r*  )	r   rL  BoundMethodr8  r
   r  rW  r:  r  )r$  r*  r  s      r   r_  z%StdlibChecker._check_redundant_assert  s    ug122
		
	 49Q<55
	 
;;	
	 +j$)A,"45      
	 
	 
	 
	 
	 
	 
	 
	r   nodes.NodeNGc                   	 t          |                                          }n# t          j        $ r Y dS w xY wt	          |t          j                  r1|                                dk    r|                     d|           dS dS dS )zICheck that a datetime was inferred, if so, emit boolean-datetime warning.Nzdatetime.timer   r@  )nextr  rL  rM  r   InstancerN  r:  )r$  r*  rK  s      r   rp  zStdlibChecker._check_datetime  s    	DJJLL))HH% 	 	 	FF	 x!122	<  O3	< /d;;;;;		< 	< 	< 	<s   !$ 77open_moduler   	func_namec                :   d}	 |dk    rt          j        |dd          }n|dk    rt          j        |dd          }n# t           j        $ r Y nw xY w|r|t          j        |          }|t          v r_t          |t          j                  rEt          |j	                  s1| 
                    d||j	        pt          |j	                  	           |r9t          |t          j                  r#|j	        rd
t          |j	                  vrd}	 |dk    rh|j        j        dk    rt          j        |dd          }nW|j        j        dk    rt          j        |dd          }n/t          j        |dd          }nt          j        |dd          }n,# t           j        $ r | 
                    d|           Y nw xY w|rRt          j        |          }t          |t          j                  r&|j	        !| 
                    d|           dS dS dS dS dS dS )z Various checks for an open call.Nr   r-   r   r  r   r   r   r*  r8  r   r   encodingr   r$   r1   r  r@  )r   rJ  r  
safe_inferOPEN_FILES_MODEr   r
   r  r   r  r:  r   r&   r[  )r$  r*  r  r  mode_argencoding_args         r   r]  zStdlibChecker._check_open_call  s    
	e#  71f   	)  71f   ( 	 	 	D	  	'11H _,	x55	 (77	
   #!>3x~+>+> !    	H(EK00	H ^	H (+#hn2E2E'E	H
  LD)+ y)[8 ','C 1j( ( ( +|; ','C 1j( ( ( (-'C 1j( ( ( $)#?q*$ $ $L , D D D  !7d CCCCCD  H$/==lEK88 H\=O H$$%;$$GGGGG?	H 	H 	H 	H6H HH H H Hs$   ;A   AABF &G ?G c                   d}d}|j         rd |j         D             }nd }|j        r|j        d         }n|r||v r	||         }nd }|r,|                     |dt          j        |          |d           t          |j                  dk    r|j        d	         }n|r||v r	||         }nd }|r.|                     ||d
t          j        |          d           d S d S )Nr2  defaultc                (    i | ]}|j         |j        S r.  )r0  r  rE  s     r   
<dictcomp>z5StdlibChecker._check_env_function.<locals>.<dictcomp>  s    NNNWgk7=NNNr   r   r   F)r*  messagecall_argr  
allow_noner$   r-   r   T)r*  r  r  r  r  )r7  r8  _check_invalid_envvar_valuer   r  r   )r$  r*  r  env_name_kwargenv_value_kwargr9  env_name_argenv_value_args           r   rf  z!StdlibChecker._check_env_function  sI   #= 	NNNNNFFF9 	 9Q<LL 	 &0 	 !.1LLL 	,,.),77  -    ty>>Q 	! IaLMM 	!61 	!"?3MM M 	,,0)-88 -     	 	r   r  r  InferenceResult | Noner  r   c                   |t           j        d fv rd S |                                }t          |t          j                  r[d}|j        | }nt          |j        t                    sd}|r.|                     ||||	                                f           d S d S |                     ||||	                                f           d S )NFTr  )
rL  rU  rN  r   r
   r  r  r   r:  pytype)r$  r*  r  r  r  r  rW  emits           r   r  z)StdlibChecker._check_invalid_envvar_value   s     +T22 	F{{}}h,, 		QD~ %~44  U  t4ARAR:S TTTTTU U W4tX__=N=N6OPPPPPr   set[str]c                    | j         S rv  )r  r$  s    r   deprecated_methodsz StdlibChecker.deprecated_methods7  s    ''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    )--fb999r   moduleIterable[str]c                8    | j                             |d          S r  )r  r  )r$  r  s     r   deprecated_classesz StdlibChecker.deprecated_classes=  s    '++FB777r   c                    | j         S rv  )r  r  s    r   deprecated_decoratorsz#StdlibChecker.deprecated_decorators@  s    **r   Nr  r   r   r  )r*  r+  r   r  )r*  rl  r   r  )r*  rt  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  )r*  r+  r  r  r  r   r  r  r  r   r   r  )r   r  )r  r   r   r  )r  r   r   r  )r   r  )#__name__
__module____qualname__rW  r   DEPRECATED_METHOD_MESSAGEDEPRECATED_ARGUMENT_MESSAGEDEPRECATED_CLASS_MESSAGEDEPRECATED_DECORATOR_MESSAGEr  __annotations__r  r=  rB  rG  rQ  r   only_required_for_messagesrk  rs  ry  r}  r  r  r  r  r_  rp  r]  rf  r  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
Kt/ t/ t/D t t t tlC C C C,   O O O OV V V V
	 	 	 	 &U%#" %# 9 9 9 9B &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@% % % %NQ Q Q Q.( ( ( (: : : :8 8 8 8+ + + + + +r   r   r  r   r  c                J    |                      t          |                      d S rv  )register_checkerr   )r  s    r   registerr  D  s$    
M&1122222r   )r   r   r   r   r  )4__doc__
__future__r   r   collections.abcr   r   r   r   r   r   r	   rL  r
   astroid.typingr   pylintr   pylint.checkersr   r   r   pylint.interfacesr   pylint.typingr   pylint.lintr   r   r   r;   r  r\  r^  ra  rd  rO  re  rb  rg  rX  rh  r  r  r5   r  r<   r   r   r   r   r  r.  r   r   <module>r     sD  
 7 6 6 " " " " " " 



 $ $ $ $ $ $ 7 7 7 7 7 7 7 7 7 7 7 7 7 7        * * * * * *       ? ? ? ? ? ? ? ? ? ? ' ' ' ' ' ' 0 0 0 0 0 0 %$$$$$$uS#s]+SX56""%@@ % 	
% !i R   	
 01GH   
0 1 	 1 	!"3	
 	/ 	%&7 	45F 	5n 	0 	, 	"#4 	; 	"#4 	#$5 	,  	0!" 	+#$ .C?NAP.C9N2Q?
1  : ()9:G$ $  & & & &R $$  
 33* *      	 
 
 


 
 


 

 

 *
 
 
$
 
 

 
 
	
 	
 	


 

 

 **
 
 
 C$

 
 
	
 	
 	

 
 

 
 
"

 

 

e} }A^2 ^2  ^ ^ ^ ^F 	!
 
 

 
 
# #J 	
 
 
	 a8G 8G  8 8 8 8v   <d+ d+ d+ d+ d+O[ d+ d+ d+N3 3 3 3 3 3r   