diff mercurial/util.py @ 52766:4eede65d68cf

lint: add comments for disabling unused import warnings where appropriate As mentioned in the previous commit, this doesn't actually placate `pyflakes`. But it does cause PyCharm to not show the imports as greyed out, so presumably it helps other IDEs too.
author Matt Harbison <matt_harbison@yahoo.com>
date Thu, 06 Feb 2025 20:43:34 -0500
parents 30510238284e
children 346d2c04440a
line wrap: on
line diff
--- a/mercurial/util.py	Thu Feb 06 20:37:22 2025 -0500
+++ b/mercurial/util.py	Thu Feb 06 20:43:34 2025 -0500
@@ -26,7 +26,9 @@
 import locale
 import mmap
 import os
-import pickle  # provides util.pickle symbol
+
+# provides util.pickle symbol
+import pickle  # noqa: F401 (ignore imported but not used)
 import re as remod
 import shutil
 import stat