Skip to content

Commit

Permalink
annotated type for python containers
Browse files Browse the repository at this point in the history
  • Loading branch information
grnydawn committed Oct 7, 2023
1 parent 1546f84 commit ab592e8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions components/omega/create_scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import re
import stat
import subprocess
import typing
import sys


Expand Down Expand Up @@ -140,7 +141,7 @@ def get_processed_value(self, raw_value, outvar):
# get module info
def get_modules(self, outvar):

modcmds = []
modcmds: typing.List[str] = []
outvar["__OMEGA_MODULE_COMMANDS__"] = modcmds

module_system_node = self.get_child("module_system")
Expand Down Expand Up @@ -212,7 +213,7 @@ def get_modules(self, outvar):
# get environmental variables info
def get_envs(self, outvar):

exports = {}
exports: typing.Dict[str, str] = {}
outvar["__OMEGA_SCRIPT_EXPORTS__"] = exports

envvar_nodes = self.get_children("environment_variables",
Expand Down Expand Up @@ -283,7 +284,7 @@ def get_mpirun(self, outvar):
# collect machine info
def gen_machinfo(self):

outvar = {}
outvar: typing.Dict[str, str] = {}

self.get_mpirun(outvar)
self.get_modules(outvar)
Expand Down

0 comments on commit ab592e8

Please sign in to comment.