Skip to content

PyLint reports "no assignment is done" but variable is changed in the scope of the procedure #9522

Open
@motib79

Description

@motib79

Bug description

I got the message:
Using global for 'ticker' but no assignment is done

for the code:
---
def remove_ticker_from_list(stock_index):
    global ticker
    ticker[stock_index]="NULL_STOCK"

Configuration

No response

Command used

VSCode

Pylint output

mentioned in descr

Expected behavior

do not report this error

Pylint version

Python 3.10.11 (tags/v3.10.11:7d4cc5a, Apr  5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)] on win32

OS / Environment

Win10

Additional dependencies

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions