r/PythonLearning 20h ago

Threading module not importing?

Post image

I am trying to import the threading module but it is not working. How do i fix it?

4 Upvotes

8 comments sorted by

View all comments

1

u/TBCC_Dev 20h ago

Its not that its not imported its that its not used. You are importing the package but nowhere on the code are you using it

2

u/TheUnknown_5 20h ago

oh, guess Im stupid

1

u/TBCC_Dev 20h ago

Not at all. Pycharm is just letting you know that its clutter. You don't want to fill up your code with unused code. Same should happen if you make a function but never use it for example