Skip to content

Commit a5b573a

Browse files
committed
push
1 parent 5522e0d commit a5b573a

2 files changed

Lines changed: 0 additions & 36 deletions

File tree

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ ruff = ">=0.1.8,<0.6.0"
3232
mypy = "^1.0.0"
3333
langchain-openai = ">=0.0.5,<0.3"
3434
langgraph = "^0.2.62"
35-
numpy = "^2.3.2"
3635

3736
[tool.poetry.group.docs.dependencies]
3837
pdoc = "^14.4.0"

tests/test_serializer.py

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -174,38 +174,3 @@ def __init__(self):
174174
obj = SlotClass()
175175
serializer = EventSerializer()
176176
assert json.loads(serializer.encode(obj)) == {"field": "value"}
177-
178-
179-
def test_numpy_float32():
180-
import numpy as np
181-
182-
data = np.float32(1.0)
183-
serializer = EventSerializer()
184-
185-
assert serializer.encode(data) == "1.0"
186-
187-
188-
def test_numpy_arrays():
189-
import numpy as np
190-
191-
serializer = EventSerializer()
192-
193-
# Test 1D array
194-
arr_1d = np.array([1, 2, 3])
195-
assert json.loads(serializer.encode(arr_1d)) == [1, 2, 3]
196-
197-
# Test 2D array
198-
arr_2d = np.array([[1, 2], [3, 4]])
199-
assert json.loads(serializer.encode(arr_2d)) == [[1, 2], [3, 4]]
200-
201-
# Test float array
202-
arr_float = np.array([1.1, 2.2, 3.3])
203-
assert json.loads(serializer.encode(arr_float)) == [1.1, 2.2, 3.3]
204-
205-
# Test empty array
206-
arr_empty = np.array([])
207-
assert json.loads(serializer.encode(arr_empty)) == []
208-
209-
# Test mixed types that numpy can handle
210-
arr_mixed = np.array([1, 2.5, 3])
211-
assert json.loads(serializer.encode(arr_mixed)) == [1.0, 2.5, 3.0]

0 commit comments

Comments
 (0)