Loco-CTO / Rystal-V6-Experiments

Inconsistent return statements PYL-R1710
Style
Minor
9 days ago2 months old
Either all return statements in a function should return an expression, or none of them should.
196            self.cursor.execute("SHOW TABLES LIKE %s", (table_name,))
197        return bool(self.cursor.fetchone())
198
199    def _get_existing_columns(self, table_name):200        """
201        Gets the existing columns of a table in the connected database.
202
Either all return statements in a function should return an expression, or none of them should.
196            self.cursor.execute("SHOW TABLES LIKE %s", (table_name,))
197        return bool(self.cursor.fetchone())
198
199    def _get_existing_columns(self, table_name):200        """
201        Gets the existing columns of a table in the connected database.
202
Either all return statements in a function should return an expression, or none of them should.
 65        draw.text((x + x_pad, y + y_pad - 4), text_str, font=font, fill=color)
 66        return rect_w
 67
 68    def format_number(num: float) -> str: 69        """
 70        Format a number with a suffix for thousands, millions, billions, etc.
 71        Args:
Either all return statements in a function should return an expression, or none of them should.
289    def deserialize(cls, data):
290        return cls(None, data["color"], data["difficulty"])
291
292    def choose_move(self):293        """
294        Choose a move based on the difficulty level.
295
Either all return statements in a function should return an expression, or none of them should.
121        )
122        return overlay
123
124    def format_number(num: float) -> str:125        if num < 1000:
126            return str(num)
127        for unit in ["", "k", "M", "B", "T"]: