From 9c236db30f61e491f4158e8568218625026bb669 Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Sun, 1 Feb 2026 18:26:49 +0000 Subject: [PATCH] Fix linting errors: Remove f-strings without placeholders and unused imports --- curl_to_code_converter/generators.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/curl_to_code_converter/generators.py b/curl_to_code_converter/generators.py index deb38ef..33317d8 100644 --- a/curl_to_code_converter/generators.py +++ b/curl_to_code_converter/generators.py @@ -3,7 +3,6 @@ Code generators for different programming languages. """ import json -from typing import Optional from .parser import ParsedCurl @@ -54,8 +53,8 @@ class CodeGenerators: code.append(f" auth={parsed.auth}\n") code.append(")\n") - code.append(f"\nprint(response.status_code)") - code.append(f"\nprint(response.text)") + code.append("\nprint(response.status_code)") + code.append("\nprint(response.text)") return ''.join(code) @@ -194,7 +193,7 @@ class CodeGenerators: code.append("$ch = curl_init();\n\n") code.append("curl_setopt($ch, CURLOPT_URL, $url);\n") - code.append(f"curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n") + code.append("curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n") if parsed.method == "POST": code.append("curl_setopt($ch, CURLOPT_POST, true);\n")