mirror of
https://github.com/9001/copyparty.git
synced 2025-10-03 17:59:19 +02:00
speedgolf
in some envs (unsure which), importlib.resources is an expensive import; drop it when we know it's useless
This commit is contained in:
parent
21db8833dc
commit
b2aaf40a3e
6 changed files with 13 additions and 1 deletions
|
@ -84,6 +84,9 @@ def uh2(fp):
|
|||
if " # !rm" in ln:
|
||||
continue
|
||||
|
||||
if ln.endswith("TYPE_CHECKING"):
|
||||
ln = ln.replace("from typing import TYPE_CHECKING", "TYPE_CHECKING = False")
|
||||
|
||||
lns.append(ln)
|
||||
|
||||
cs = "\n".join(lns)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue