From: Collin Funk Date: Sat, 3 Aug 2024 03:52:28 +0000 (-0700) Subject: gnulib-tool.py: Correct type hint and doc string. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=2f400ffc4026513216f0fc9f545c470e06f43986;p=gnulib.git 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. --- diff --git a/ChangeLog b/ChangeLog index 2f1340a06a..d331b50f10 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2024-08-02 Collin Funk + + 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 Allow use of --avoid=extensions-aix. diff --git a/pygnulib/GLModuleSystem.py b/pygnulib/GLModuleSystem.py index e713b60fc9..04bb87a46d 100644 --- a/pygnulib/GLModuleSystem.py +++ b/pygnulib/GLModuleSystem.py @@ -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()