andrewtryder / python-craiyon-api

Consider decorating method with @staticmethod PYL-R0201
Performance
Major
a year agoa year old
Method doesn't use the class instance and could be converted into a static method
 84        images = [f"https://img.craiyon.com/{path}" for path in json_response["images"]]
 85        return CraiyonAPI.GenerationResult(images, json_response["next_prompt"], duration)
 86
 87    def search(self, http_client: requests.Session, text: str) -> List[Tuple[str, str]]: 88        """
 89        Searches for images related to the provided text.
 90