TypeError: worker() takes 0 positional arguments but 1 was given [duplicate]

Your worker method needs ‘self’ as a parameter, since it is a class method and not a function. Adding that should make it work fine.

Leave a Comment