~k] 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 )ThreadingCheckerzChecks for threading module.
- useless with lock - locking used in wrong way that has no effect (with threading.Lock():)
threading)zthreading.Lockzthreading.RLockzthreading.Conditionzthreading.Semaphorezthreading.BoundedSemaphoreW2101)z/'%s()' directly created in 'with' has no effectuseless-with-lockzUsed 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.WithreturnNonec 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).0c_s s/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/pylint/checkers/threading_checker.py