]H4$C Z d dl mZ d dlmZmZmZmZmZm Z d dl
mZ G d de ZdS ) )messages)
FunctionScope
ClassScopeModuleScopeArgumentFunctionDefinition
Assignment)TestCasec 0 e Zd ZdZd Zd Zd Zd Zd ZdS )TestCodeSegmentsz(
Tests for segments of a module
c x | dd | dt j d d S )NzH
def foo():
def bar():
pass
T
is_segmentzI
def foo():
def bar():
x = 0
flakesmUnusedVariableselfs q/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/pyflakes/test/test_code_segment.pytest_function_segmentz&TestCodeSegments.test_function_segment ]
$ 0 0 0 0 0 c x | dd | dt j d d S )NzH
class Foo:
class Bar:
pass
Tr zI
class Foo:
def bar():
x = 0
r r s r test_class_segmentz#TestCodeSegments.test_class_segment r r c | | dd }|j }d |D }d |D }d |D }| t | d | t | d | t | d |d }|d }| |t
| |t | d | | d
| | d| | d| | d
| | d| | |d
t | |d t | |d t | |d t | |d
t | |d t d S )Nzi
class Foo:
x = 0
def bar(a, b=1, *d, **e):
pass
Tr c . g | ]}|j t u |S __class__r .0scopes r