.. _bad-thread-instantiation: bad-thread-instantiation / W1506 ================================ **Message emitted:** ``threading.Thread needs the target function`` **Description:** *The warning is emitted when a threading.Thread class is instantiated without the target function being passed as a kwarg or as a second argument. By default, the first parameter is the group param, not the target param.* **Problematic code:** .. literalinclude:: /data/messages/b/bad-thread-instantiation/bad.py :language: python **Correct code:** .. literalinclude:: /data/messages/b/bad-thread-instantiation/good.py :language: python Created by the `stdlib `__ checker.