Skip to content

Commit 4b67550

Browse files
committed
fix: Add type annotation to fix mypy error
1 parent 1100b37 commit 4b67550

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mod_ci/controllers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,10 +317,11 @@ def _diagnose_missing_artifact(repository, commit_sha: str, expected_workflow: s
317317
:return: A descriptive error message
318318
"""
319319
from collections import defaultdict
320+
from typing import DefaultDict, Optional
320321

321322
try:
322323
# Build workflow name lookup
323-
workflow = defaultdict(lambda: None)
324+
workflow: DefaultDict[int, Optional[str]] = defaultdict(lambda: None)
324325
for active_workflow in repository.get_workflows():
325326
workflow[active_workflow.id] = active_workflow.name
326327

0 commit comments

Comments
 (0)