mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-26 11:12:50 +00:00
typo
This commit is contained in:
@@ -5,7 +5,7 @@ from typing import Any, Callable, NewType, Optional
|
||||
V = NewType("V", Callable[[str, Any], Any])
|
||||
|
||||
|
||||
def check_singles(field: str, value: Optional[str]) -> Optional[str]:
|
||||
def check_single(field: str, value: Optional[str]) -> Optional[str]:
|
||||
"""Check that string is a single value."""
|
||||
if value and ("," in value or ";" in value):
|
||||
raise ValueError(f"multiple values not allowed for field '{field}'")
|
||||
|
||||
Reference in New Issue
Block a user