Skip to content

Commit b2f1805

Browse files
drernieclaude
andcommitted
fix: add type ignores to suppress mypy import errors
Add type: ignore comments for boto3 and requests imports without stubs. Fix type annotation for result variable in safe_get function. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent d48a75e commit b2f1805

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

deploy/lib/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ def safe_get(data: Dict[str, Any], *keys: str, default: Any = None) -> Any:
644644
Returns:
645645
Value at nested key or default
646646
"""
647-
result = data
647+
result: Any = data
648648
for key in keys:
649649
if isinstance(result, dict):
650650
result = result.get(key)

deploy/lib/validator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
from dataclasses import dataclass
55
from typing import Any, Dict, List, Optional
66

7-
import boto3
8-
import requests
7+
import boto3 # type: ignore
8+
import requests # type: ignore
99

1010
logger = logging.getLogger(__name__)
1111

0 commit comments

Comments
 (0)