mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-13 02:37:01 +02:00
script, test: add missing python type annotations
Fix warnings for these files when ./test/lint/lint-python.py is run using mypy 0.991 (released 11/2022) and later: "By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]" For details, see: https://mypy-lang.blogspot.com/2022/11/mypy-0990-released.html
This commit is contained in:
@ -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.
|
||||
#
|
||||
|
Reference in New Issue
Block a user