Skip to content

Commit 0316f94

Browse files
committed
fix: correct type hint from 'any' to 'Any' in validator
- Import Any from typing module - Fix return type annotation in validate_input_csv function - Addresses Copilot AI feedback on type hints
1 parent cf9c496 commit 0316f94

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/quant_research_starter/data/validator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""CSV validator for user-provided historical price and signals files."""
22

33
from pathlib import Path
4-
from typing import Dict, List, Optional, Tuple
4+
from typing import Any, Dict, List, Optional, Tuple
55

66
import pandas as pd
77

@@ -323,7 +323,7 @@ def validate_signals_csv(
323323

324324
def validate_input_csv(
325325
file_path: str, csv_type: str = "price", **kwargs
326-
) -> Dict[str, any]:
326+
) -> Dict[str, Any]:
327327
"""
328328
General-purpose CSV validator with structured error reporting.
329329

0 commit comments

Comments
 (0)