KOSASIH / pipfs-hub

Function contains unused argument PYL-W0613
Anti-pattern
Major
4 months ago4 months old
Unused argument 'root_dir'
1from typing import List
2
3def list_packages(root_dir: str) -> List[str]:4    """Return a list of package names in the given root directory."""
5    # ...
 1import nltk
 2
 3
 4def preprocess_text(text, config): 5    # Preprocess text using the specified configuration
 6    # For example, tokenize, remove stop words, or stem the words
 7
26        def on_connect(client, userdata, flags, rc):
27            client.subscribe(self.topic)
28
29        def on_message(client, userdata, msg):30            callback(msg.payload)
31
32        client = mqtt.Client()
26        def on_connect(client, userdata, flags, rc):
27            client.subscribe(self.topic)
28
29        def on_message(client, userdata, msg):30            callback(msg.payload)
31
32        client = mqtt.Client()
23
24    def mqtt_subscribe(self, callback):
25        # Subscribe to a topic using MQTT protocol
26        def on_connect(client, userdata, flags, rc):27            client.subscribe(self.topic)
28
29        def on_message(client, userdata, msg):