From 2be85b67a90ca207037ea11368f861e717d07ac8 Mon Sep 17 00:00:00 2001 From: ed Date: Sun, 16 Aug 2026 18:23:12 +0000 Subject: [PATCH] lint --- copyparty/httpcli.py | 2 ++ copyparty/util.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/copyparty/httpcli.py b/copyparty/httpcli.py index 189f18a0..23727495 100644 --- a/copyparty/httpcli.py +++ b/copyparty/httpcli.py @@ -1658,6 +1658,8 @@ class HttpCli(object): "expires": time.time() + self.args.wopi_ttl, } + assert atoken and session # type: ignore # !rm + xml = url = "?" try: from .dxml import parse_xml diff --git a/copyparty/util.py b/copyparty/util.py index fccafa49..aeca5ae1 100644 --- a/copyparty/util.py +++ b/copyparty/util.py @@ -352,7 +352,7 @@ RE_MEMAVAIL = re.compile("^MemAvailable:.* kB") if PY2: - def umktrans(s1, s2): + def umktrans(s1: str, s2: str): return {ord(c1): ord(c2) for c1, c2 in zip(s1, s2)} else: