]> Savannah Git Hosting - gnulib.git/commitdiff
gnulib-tool.py: Fix incorrect type hint.
authorCollin Funk <collin.funk1@gmail.com>
Sun, 14 Apr 2024 20:41:17 +0000 (13:41 -0700)
committerBruno Haible <bruno@clisp.org>
Sun, 14 Apr 2024 22:18:33 +0000 (00:18 +0200)
* pygnulib/constants.py (filter_filelist): Correct the type hint on the
'filelist' argument. It is a list of strings, not a string.

ChangeLog
pygnulib/constants.py

index 806b77faa6f314d86435e667a2cdd6c741235c53..5b7b3a36fc9e4cb957c6e41ce2a3b2e09c7a3e32 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-04-14  Collin Funk  <collin.funk1@gmail.com>
+
+       gnulib-tool.py: Fix incorrect type hint.
+       * pygnulib/constants.py (filter_filelist): Correct the type hint on the
+       'filelist' argument. It is a list of strings, not a string.
+
 2024-04-14  Collin Funk  <collin.funk1@gmail.com>
 
        gnulib-tool.py: Write newlines consistently.
index 899ba46efdb40e79260a89beabfc609c26281691..81f9b660f737ef1b0f70be8c2b7a36e580e0f1e8 100644 (file)
@@ -464,7 +464,7 @@ def rmtree(dest: str) -> None:
             pass
 
 
-def filter_filelist(separator: str, filelist: str, prefix: str, suffix: str,
+def filter_filelist(separator: str, filelist: list[str], prefix: str, suffix: str,
                     removed_prefix: str, removed_suffix: str,
                     added_prefix: str = '', added_suffix: str = '') -> str:
     '''Filter the given list of files. Filtering: Only the elements starting with