§
|<ˆj• ã óz — d dl mZ d dlmZ d dlmZ d dlmZ d dlm Z m
Z
erd dlmZ G d„ de¦ « Z
dd
„ZdS )é )Úannotations)Ú
TYPE_CHECKING)Únodes)ÚBaseChecker)Úonly_required_for_messagesÚ
safe_infer)ÚPyLinterc ó^ — e Zd ZdZdZ ed¦ « ZddiZ ed¦ « d
d„¦ « Z dS )ÚThreadingCheckerz‚Checks for threading module.
- useless with lock - locking used in wrong way that has no effect (with threading.Lock():)
Ú threading)zthreading.Lockzthreading.RLockzthreading.Conditionzthreading.Semaphorezthreading.BoundedSemaphoreÚW2101)z/'%s()' directly created in 'with' has no effectúuseless-with-lockz“Used when a new lock instance is created by using with statement which has no effect. Instead, an existing instance should be used to acquire lock.r Únodeú
nodes.WithÚreturnÚNonec óþ — d„ |j D ¦ « }|D ]h}t |t j ¦ « rLt |j ¦ « }|€Œ3| ¦ « }|| j v r| d||¬¦ « Œid S )Nc 3 óT K — | ]#\ }}t |t j ¦ « ¯|V — Œ$d S ©N)Ú
isinstancer ÚCall)Ú.0ÚcÚ_s ús/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib/python3.11/site-packages/pylint/checkers/threading_checker.pyú