correct typing issues
Some checks failed
Mypy / mypy (push) Successful in 1m10s
Pytest / pytest (3.12) (push) Failing after 1m12s
Pytest / pytest (3.13) (push) Failing after 1m7s
Pytest / pytest (3.14) (push) Failing after 1m8s
Ruff / ruff (push) Has been cancelled

This commit is contained in:
Justus Kuhlmann 2026-05-06 18:06:14 +02:00
commit 3c09fb7f8c
Signed by: jkuhl
GPG key ID: 00ED992DD79B85A6

View file

@ -56,15 +56,15 @@ def lister(
""" """
if entities in ['ensembles', 'Ensembles','ENSEMBLES']: if entities in ['ensembles', 'Ensembles','ENSEMBLES']:
print("Ensembles:") print("Ensembles:")
results = list_ensembles(path) ensemble_results = list_ensembles(path)
for e in results: for e in ensemble_results:
print(e) print(e)
elif entities == 'projects': elif entities == 'projects':
results = list_projects(path) project_results = list_projects(path)
print("Projects:") print("Projects:")
header = "UUID".ljust(37) + "| Aliases" header = "UUID".ljust(37) + "| Aliases"
print(header) print(header)
for project in results: for project in project_results:
if project[1] is not None: if project[1] is not None:
aliases = " | ".join(str2list(project[1])) aliases = " | ".join(str2list(project[1]))
else: else: