Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
hiohiohio committed Mar 1, 2024
1 parent 2957b3c commit 09a56e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions alpaca/common/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ def validate_symbol_or_contract_id(
ValueError if neither type.
Args:
symbol_or_contract_id: String representing a symbol name or a UUID representing an contract id.
symbol_or_contract_id: String representing a symbol name or a UUID representing a contract id.
Returns:
String if symbol, UUID if contract id.
"""
if isinstance(symbol_or_contract_id, (UUID, str)):
return symbol_or_contract_id
raise ValueError(
"symbol_or_contract_id must be a UUID of an contract id or a string of a symbol."
"symbol_or_contract_id must be a UUID of a contract id or a string of a symbol."
)


Expand Down

0 comments on commit 09a56e4

Please sign in to comment.