* pygnulib/GLModuleSystem.py (GLModuleTable.getCondition): Add None to
the return type hint. This is the return value when the module is not a
conditional dependency.
+2024-04-08 Collin Funk <collin.funk1@gmail.com>
+
+ gnulib-tool.py: Fix incomplete type hint.
+ * pygnulib/GLModuleSystem.py (GLModuleTable.getCondition): Add None to
+ the return type hint. This is the return value when the module is not a
+ conditional dependency.
+
2024-04-08 Collin Funk <collin.funk1@gmail.com>
gnulib-tool.py: Remove unnecessary conditional.
result = str(module) in self.dependers
return result
- def getCondition(self, parent: GLModule, module: GLModule) -> str | bool:
+ def getCondition(self, parent: GLModule, module: GLModule) -> str | bool | None:
'''Return condition from parent to module. Condition can be string or True.
If module is not in the list of conddeps, method returns None.'''
if type(parent) is not GLModule: