fix: resolve lint errors (E741 ambiguous var, F401 unused import)

This commit is contained in:
jackwener
2026-03-11 17:33:36 +08:00
parent a139b1052c
commit 74f06638ee
3 changed files with 2 additions and 3 deletions

View File

@@ -567,7 +567,7 @@ def get_cookies() -> Dict[str, str]:
if hint: if hint:
lines.append("") lines.append("")
lines.append("Likely cause:") lines.append("Likely cause:")
lines.extend(" " + l for l in hint.splitlines()) lines.extend(" " + line for line in hint.splitlines())
lines.append("") lines.append("")
lines.append("Option 1: Set TWITTER_AUTH_TOKEN and TWITTER_CT0 environment variables") lines.append("Option 1: Set TWITTER_AUTH_TOKEN and TWITTER_CT0 environment variables")
lines.append("Option 2: Make sure you are logged into x.com in your browser (Arc/Chrome/Edge/Firefox/Brave)") lines.append("Option 2: Make sure you are logged into x.com in your browser (Arc/Chrome/Edge/Firefox/Brave)")

View File

@@ -1007,7 +1007,6 @@ def doctor(as_json, as_yaml):
_diagnose_keychain_issues, _diagnose_keychain_issues,
_extract_in_process, _extract_in_process,
_extract_via_subprocess, _extract_via_subprocess,
extract_from_browser,
load_from_env, load_from_env,
verify_cookies, verify_cookies,
) )

2
uv.lock generated
View File

@@ -1010,7 +1010,7 @@ wheels = [
[[package]] [[package]]
name = "twitter-cli" name = "twitter-cli"
version = "0.6.3" version = "0.6.4"
source = { editable = "." } source = { editable = "." }
dependencies = [ dependencies = [
{ name = "beautifulsoup4" }, { name = "beautifulsoup4" },