K iRddlmZddlmZmZmZmZmZm Z ddl m Z Gdde Z y))messages) FunctionScope ClassScope ModuleScopeArgumentFunctionDefinition Assignment)TestCasec.eZdZdZdZdZdZdZdZy)TestCodeSegmentsz( Tests for segments of a module cn|jdd|jdtjdy)NzH def foo(): def bar(): pass T is_segmentzI def foo(): def bar(): x = 0 flakesmUnusedVariableselfs e/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/pyflakes/test/test_code_segment.pytest_function_segmentz&TestCodeSegments.test_function_segment B        $  0cn|jdd|jdtjdy)NzH class Foo: class Bar: pass TrzI class Foo: def bar(): x = 0 rrs rtest_class_segmentz#TestCodeSegments.test_class_segmentrrc>|jdd}|j}|Dcgc]}|jtus|}}|Dcgc]}|jtus|}}|Dcgc]}|jt us|}}|j t|d|j t|d|j t|d|d}|d}|j|t|j|t |jd||jd||jd||jd ||jd ||jd ||j|dt|j|dt|j|dt|j|d t|j|d t|j|d tycc}wcc}wcc}w) Nzi class Foo: x = 0 def bar(a, b=1, *d, **e): pass Trrxbarabde) r deadScopes __class__rrr assertEquallenassertIsInstanceassertInrr r) rcheckerscopesscope module_scopes class_scopesfunction_scopes class_scopefunction_scopes rtest_scope_classz!TestCodeSegments.test_scope_class&s++  ##%IK)GEI I &HJ)FEH H &KM)IEKK ]+Q/ \*A. _-q1"1o (+ k:6 nm< c;' e[) c>* c>* c>* c>* k%02DE k#. ; nS18< nS18< nS18< nS18rr N) pyflakesrrpyflakes.checkerrrrrrr pyflakes.test.harnessr r rBrrrFs%"HH*z>xz>r