Skip to content

Commit d4579d3

Browse files
author
David Erb
committed
type lint
1 parent c2891a2 commit d4579d3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/dls_utilpack/whatenv.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def compose_as_yaml(self) -> str:
6767

6868
self.__compose_scalar("VIRTUAL_ENV", output_dict)
6969

70-
sge_dict = {}
70+
sge_dict: dict = {}
7171
self.__compose_scalar("SGE_CELL", sge_dict)
7272
self.__compose_scalar("SGE_EXECD_PORT", sge_dict)
7373
self.__compose_scalar("SGE_QMASTER_PORT", sge_dict)
@@ -81,20 +81,20 @@ def compose_as_yaml(self) -> str:
8181
self.__compose_scalar("JOB_NAME", sge_dict)
8282
output_dict["sge"] = sge_dict
8383

84-
slurm_dict = {}
84+
slurm_dict: dict = {}
8585
for k in os.environ.keys():
8686
if k.startswith("SLURM"):
8787
self.__compose_scalar(k, slurm_dict)
8888
output_dict["slurm"] = slurm_dict
8989

90-
conda_dict = {}
90+
conda_dict: dict = {}
9191
self.__compose_scalar("CONDA_PREFIX", conda_dict)
9292
conda_shlvl = int(os.environ.get("CONDA_SHLVL", 0))
9393
for i in range(conda_shlvl - 1, 0, -1):
9494
self.__compose_scalar(f"CONDA_PREFIX_{i}", conda_dict)
9595
output_dict["conda"] = conda_dict
9696

97-
modules_dict = {}
97+
modules_dict: dict = {}
9898
self.__compose_paths("MODULEPATH", modules_dict)
9999
self.__compose_paths("MODULESHOME", modules_dict)
100100
self.__compose_paths("LOADEDMODULES", modules_dict)

0 commit comments

Comments
 (0)