Loco-CTO / Rystal-V6-Experiments

Method should have self as the first argument PYL-E0213
Anti-pattern
Major
2 months ago2 months old
Method 'pre_check' should have "self" as first argument
390
391        return True
392
393    def pre_check(*d_args, **d_kwargs) -> Callable:394        """
395        A decorator for methods requiring pre-checks.
396
Method 'message' should have "self" as first argument
29class Embeds:
30    """Class for creating Nextcord embed messages."""
31
32    def message(title, message, message_type, thumbnail=None):33        """
34        Create an embed message.
35
Method 'search_song' should have "self" as first argument
54
55
56class Searcher:
57    async def search_song(term):58        return_dump = []
59        result = genius.search_songs(term)
60
Method 'filledBar' should have "self" as first argument
67        calculated = percentage * 100
68        return [bar, calculated]
69
70    def filledBar(total, current, size=15, line="", slider=""):71        """
72        Generate a filled-style progress bar.
73
Method 'splitBar' should have "self" as first argument
40            Generates a progress bar with filled style.
41    """
42
43    def splitBar(total, current, size=15, line="", slider="🔘"):44        """
45        Generate a split-style progress bar.
46