From: Collin Funk <collin.funk1@gmail.com>
Date: Sun, 14 Apr 2024 20:41:17 +0000 (-0700)
Subject: gnulib-tool.py: Fix incorrect type hint.
X-Git-Tag: v1.0~89
X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=cb7ab9c7290164ca515a0d25cfb7cdd55d8e9e31;p=gnulib.git

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.
---

diff --git a/ChangeLog b/ChangeLog
index 806b77faa6..5b7b3a36fc 100644
--- 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.
diff --git a/pygnulib/constants.py b/pygnulib/constants.py
index 899ba46efd..81f9b660f7 100644
--- a/pygnulib/constants.py
+++ b/pygnulib/constants.py
@@ -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