From 1bca86c6e132b141820a9b5843696ceaaef3190d Mon Sep 17 00:00:00 2001 From: ed Date: Mon, 29 Sep 2025 23:07:03 +0000 Subject: [PATCH] thx pyright --- copyparty/authsrv.py | 1 + copyparty/httpcli.py | 1 - copyparty/u2idx.py | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/copyparty/authsrv.py b/copyparty/authsrv.py index 0dc35e13..9c55b3ea 100644 --- a/copyparty/authsrv.py +++ b/copyparty/authsrv.py @@ -24,6 +24,7 @@ from .util import ( FAVICON_MIMES, HAVE_SQLITE3, IMPLICATIONS, + META_NOBOTS, MIMES, SQLITE_VER, UNPLICATIONS, diff --git a/copyparty/httpcli.py b/copyparty/httpcli.py index 576130ad..7bc09c16 100644 --- a/copyparty/httpcli.py +++ b/copyparty/httpcli.py @@ -48,7 +48,6 @@ from .util import ( FN_EMB, HAVE_SQLITE3, HTTPCODE, - META_NOBOTS, UTC, Garda, MultipartParser, diff --git a/copyparty/u2idx.py b/copyparty/u2idx.py index bad6598d..ca1014d1 100644 --- a/copyparty/u2idx.py +++ b/copyparty/u2idx.py @@ -303,7 +303,7 @@ class U2idx(object): is_size = False v = int(float(v) * 1024 * 1024) - if is_wark: + elif is_wark: is_wark = False v = v.strip("*") if len(v) > 16: