Skip to content

Commit

Permalink
Fix mypy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Molaire committed Jun 15, 2023
1 parent 9ccbea3 commit 860d925
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions paasta_tools/tron_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,15 +415,18 @@ def get_job_name(self):
def get_action_name(self):
return self.action

def get_secret_volumes(self) -> List[TronSecretVolume]:
def get_secret_volumes(self) -> List[TronSecretVolume]: # type: ignore
"""Adds the secret_volume_name to the objet so tron/task_processing can load it downstream without replicating code."""
secret_volumes = super().get_secret_volumes()
return [
TronSecretVolume(
secret_volume_name=self.get_secret_volume_name(
secret_volume["secret_name"]
),
**secret_volume,
secret_name=secret_volume["secret_name"],
container_path=secret_volume["container_path"],
default_mode=secret_volume["default_mode"],
items=secret_volume["items"],
)
for secret_volume in secret_volumes
]
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ sticht==1.1.18
strict-rfc3339==0.7
swagger-spec-validator==2.1.0
syslogmp==0.2.2
task-processing==0.1.3
task-processing==0.12.1
thriftpy2==0.4.11
transitions==0.6.9
translationstring==1.3
Expand Down

0 comments on commit 860d925

Please sign in to comment.