aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2023-06-30 16:19:16 +0100
committerfanquake <fanquake@gmail.com>2023-06-30 16:20:37 +0100
commit3367e1c8509b84ba46c3791604d742886b98c6ed (patch)
tree9d4fe69045ed27d14cb34a49c76683639c1b43e3 /contrib
parentf8a71f3fc0a67ebfddd82c90506613889a934d95 (diff)
parent6c97757a480b6e71a0750330d69ff18ac7cc6127 (diff)
downloadbitcoin-3367e1c8509b84ba46c3791604d742886b98c6ed.tar.xz
Merge bitcoin/bitcoin#28009: script, test: python typing and linter updates
6c97757a480b6e71a0750330d69ff18ac7cc6127 script: appease spelling linter (Jon Atack) 1316119ce7ba3de4135bbf1e5ac28c9ea26f62e1 script: update ignored-words.txt (Jon Atack) 146c861da2e4236997bee3eed6110a5016a8b86b script: update linter dependencies (Jon Atack) 92408224a4cb2f454465d5ff8445c247f2c4318a test: fix PEP484 no implicit optional argument types errors (Jon Atack) f86a3014338de6a2204bbdda10795b75ef6654c0 script, test: add missing python type annotations (Jon Atack) Pull request description: With these updates, `./test/lint/lint-python.py` and `./test/lint/lint-spelling.py` should be green again for developers using relatively recent Python dependencies, in particular mypy 0.991 (released 11/2022) and later. Please see the commit messages for details. ACKs for top commit: fanquake: ACK 6c97757a480b6e71a0750330d69ff18ac7cc6127 Tree-SHA512: 8a46a4d36d5978affdcecf4f2ace20ca1b52d483e098304911a2169afe60ccb9b042fa90c04b762d94f3ce53d2cafe6f24476ae839867a770c7f31e7e7242d99
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/devtools/test-security-check.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/devtools/test-security-check.py b/contrib/devtools/test-security-check.py
index 90268740c6..1390e310f2 100755
--- a/contrib/devtools/test-security-check.py
+++ b/contrib/devtools/test-security-check.py
@@ -28,7 +28,7 @@ def clean_files(source, executable):
os.remove(source)
os.remove(executable)
-def call_security_check(cc, source, executable, options):
+def call_security_check(cc: str, source: str, executable: str, options) -> tuple:
# This should behave the same as AC_TRY_LINK, so arrange well-known flags
# in the same order as autoconf would.
#