import time
from PyQt5 import QtCore


class BulletWorker(QtCore.QThread):
    done_singnal = QtCore.pyqtSignal()

    def __init__(self, bullet):
        super().__init__()
        self.bullet = bullet

    def run(self):
        while self.bullet.life:
            self.bullet.move()
            time.sleep(0.02)
        self.done_singnal.emit()

e44ccbf421cd204f8b9be3e65200fd084967f18c
<mask token>


class BulletWorker(QtCore.QThread):
    <mask token>
    <mask token>
    <mask token>

<mask token>


class BulletWorker(QtCore.QThread):
    <mask token>

    def __init__(self, bullet):
        super().__init__()
        self.bullet = bullet

    def run(self):
        while self.bullet.life:
            self.bullet.move()
            time.sleep(0.02)
        self.done_singnal.emit()

<mask token>


class BulletWorker(QtCore.QThread):
    done_singnal = QtCore.pyqtSignal()

    def __init__(self, bullet):
        super().__init__()
        self.bullet = bullet

    def run(self):
        while self.bullet.life:
            self.bullet.move()
            time.sleep(0.02)
        self.done_singnal.emit()

import time
from PyQt5 import QtCore


class BulletWorker(QtCore.QThread):
    done_singnal = QtCore.pyqtSignal()

    def __init__(self, bullet):
        super().__init__()
        self.bullet = bullet

    def run(self):
        while self.bullet.life:
            self.bullet.move()
            time.sleep(0.02)
        self.done_singnal.emit()
