Skip to content

Commit

Permalink
Add type annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
iszulcdeepsense committed Mar 1, 2023
1 parent 9d2e53f commit ccc1452
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def list_jobs(self, config: Config) -> Iterable[JobDto]:
start_timestamp = datetime_to_timestamp(recent_pod.metadata.creation_timestamp)
internal_name = f'{resource_name}.{K8S_NAMESPACE}.svc:7000'

replica_internal_names = []
replica_internal_names: list[str] = []
for pod in pods:
pod_status: V1PodStatus = pod.status
pod_ip_dns: str = pod_status.pod_ip.replace('.', '-')
Expand Down

0 comments on commit ccc1452

Please sign in to comment.