From 2f400ffc4026513216f0fc9f545c470e06f43986 Mon Sep 17 00:00:00 2001 From: Collin Funk Date: Fri, 2 Aug 2024 20:52:28 -0700 Subject: [PATCH] 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. --- ChangeLog | 7 +++++++ pygnulib/GLModuleSystem.py | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) 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() -- 2.39.5