Skip to content

Commit 5860193

Browse files
committed
Use typing as a real annotation
1 parent d1fd005 commit 5860193

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

citc/list_nodes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def create_table(
1313
for slurm_node in slurm_nodes:
1414
matches = [node for node in cloud_nodes if node.name == slurm_node.name]
1515
if len(matches) == 1:
16-
cloud_state = matches[0].state # type: Optional[cloud.NodeState]
16+
cloud_state: Optional[cloud.NodeState] = matches[0].state
1717
else:
1818
cloud_state = None
1919
table.append(

0 commit comments

Comments
 (0)