]> Savannah Git Hosting - gnulib.git/commitdiff
gnulib-tool.py: Correct type hint and doc string.
authorCollin Funk <collin.funk1@gmail.com>
Sat, 3 Aug 2024 03:52:28 +0000 (20:52 -0700)
committerCollin Funk <collin.funk1@gmail.com>
Sat, 3 Aug 2024 03:52:28 +0000 (20:52 -0700)
* pygnulib/GLModuleSystem.py (GLModule.getDependentsRecursively): Adjust
type hint and doc string to correctly state a set of GLModule's is
returned.

ChangeLog
pygnulib/GLModuleSystem.py

index 2f1340a06a368260120e394f996962399b50cf8d..d331b50f10f60a758f1de98753b82cdb25107b4c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2024-08-02  Collin Funk  <collin.funk1@gmail.com>
+
+       gnulib-tool.py: Correct type hint and doc string.
+       * pygnulib/GLModuleSystem.py (GLModule.getDependentsRecursively): Adjust
+       type hint and doc string to correctly state a set of GLModule's is
+       returned.
+
 2024-08-02  Bruno Haible  <bruno@clisp.org>
 
        Allow use of --avoid=extensions-aix.
index e713b60fc9fce8270f66466485bf29dd7e7f5ef0..04bb87a46d5c4cdcc602c6a3b40fc4ffb62a9ac1 100644 (file)
@@ -604,9 +604,9 @@ class GLModule:
             self.cache['dependents'] = result
         return self.cache['dependents']
 
-    def getDependentsRecursively(self) -> str:
+    def getDependentsRecursively(self) -> set[GLModule]:
         '''Return a list of recursive dependents of this module,
-        as a list of GLModule objects.'''
+        as a set of GLModule objects.'''
         handledmodules = set()
         inmodules = set()
         outmodules = set()