Skip to content

Commit

Permalink
Fix type annotation for Python < 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
kesmit13 committed Jul 12, 2023
1 parent 5b205fd commit a3fadf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion singlestoredb/http/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def encode_decimal(o: decimal.Decimal) -> str:

if has_numpy:

def encode_ndarray(obj: np.ndarray[Any, Any]) -> bytes:
def encode_ndarray(obj: np.ndarray) -> bytes: # type: ignore
"""Encode an ndarray as bytes."""
return obj.tobytes()

Expand Down

0 comments on commit a3fadf7

Please sign in to comment.