Skip to content

Commit e35de59

Browse files
🔧 Auto-fix: Fix mypy type hints
- Add return type annotation to __init__ (-> None) - Change dict to Dict[str, Any] with proper type parameters - Fixes mypy type-check errors Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent ae42e25 commit e35de59

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

optimizely/helpers/lintinghelper.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,18 @@
88
"""
99

1010
from __future__ import annotations
11+
from typing import Dict, Any
1112
import logging
1213

1314

1415
class LintingHelper:
1516
"""Fix linting and formatting issues across SDKs"""
1617

17-
def __init__(self):
18+
def __init__(self) -> None:
1819
"""Initialize LintingHelper."""
1920
pass
2021

21-
def run_linter(self, file_path: str, fix: bool) -> dict:
22+
def run_linter(self, file_path: str, fix: bool) -> Dict[str, Any]:
2223
"""
2324
Run linter on file and optionally fix issues
2425

0 commit comments

Comments
 (0)