mirror of
ssh://git.janware.com/janware/proj/jw-pkg
synced 2026-04-25 09:35:54 +02:00
jw.pkg.App: Annotate add_modules_from_project_txt()
Type-annotate add_modules_from_project_txt()'s parameter list. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
5cdc32abd7
commit
bf4834085e
1 changed files with 4 additions and 7 deletions
|
|
@ -110,7 +110,6 @@ class App(Base):
|
|||
|
||||
def __init__(self):
|
||||
super().__init__("jw-pkg swiss army knife", modules=["jw.pkg.cmds"])
|
||||
|
||||
# -- Members without default values
|
||||
self.__opt_os: str|None = None
|
||||
self.__top_name: str|None = None
|
||||
|
|
@ -328,13 +327,11 @@ class App(Base):
|
|||
# scope 1: children
|
||||
# scope 2: recursive
|
||||
|
||||
def add_modules_from_project_txt_cached(self, buf, visited, spec, section, key, add_self, scope,
|
||||
names_only):
|
||||
return self.__res_cache.run(self.add_modules_from_project_txt, [buf, visited, spec, section, key,
|
||||
add_self, scope, names_only])
|
||||
def add_modules_from_project_txt_cached(self, buf, visited, spec, section, key, add_self, scope, names_only):
|
||||
return self.__res_cache.run(self.add_modules_from_project_txt, [buf, visited, spec, section, key, add_self, scope, names_only])
|
||||
|
||||
def add_modules_from_project_txt(self, buf, visited, spec, section, key, add_self, scope,
|
||||
names_only):
|
||||
def add_modules_from_project_txt(self, buf: list[str], visited: set[str], spec: str,
|
||||
section: str, key: str, add_self: bool, scope: int, names_only: bool):
|
||||
name = self.strip_module_from_spec(spec)
|
||||
if names_only:
|
||||
spec = name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue