Skip to content

Commit dd96150

Browse files
authored
fix: Update typeguard version to >=4.0.0 (#3837)
1 parent ec11a7c commit dd96150

8 files changed

Lines changed: 9 additions & 8 deletions

‎sdk/python/requirements/py3.10-ci-requirements.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -895,7 +895,7 @@ traitlets==5.14.1
895895
# nbformat
896896
trino==0.327.0
897897
# via feast (setup.py)
898-
typeguard==2.13.3
898+
typeguard==4.1.5
899899
# via feast (setup.py)
900900
types-protobuf==3.19.22
901901
# via

‎sdk/python/requirements/py3.10-requirements.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ toolz==0.12.1
200200
# partd
201201
tqdm==4.66.2
202202
# via feast (setup.py)
203-
typeguard==2.13.3
203+
typeguard==4.1.5
204204
# via feast (setup.py)
205205
types-protobuf==4.24.0.20240129
206206
# via mypy-protobuf

‎sdk/python/requirements/py3.8-ci-requirements.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,7 @@ traitlets==5.14.1
919919
# nbformat
920920
trino==0.327.0
921921
# via feast (setup.py)
922-
typeguard==2.13.3
922+
typeguard==4.1.5
923923
# via feast (setup.py)
924924
types-protobuf==3.19.22
925925
# via

‎sdk/python/requirements/py3.8-requirements.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ toolz==0.12.1
203203
# partd
204204
tqdm==4.66.2
205205
# via feast (setup.py)
206-
typeguard==2.13.3
206+
typeguard==4.1.5
207207
# via feast (setup.py)
208208
types-protobuf==4.24.0.20240129
209209
# via mypy-protobuf

‎sdk/python/requirements/py3.9-ci-requirements.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -904,7 +904,7 @@ traitlets==5.14.1
904904
# nbformat
905905
trino==0.327.0
906906
# via feast (setup.py)
907-
typeguard==2.13.3
907+
typeguard==4.1.5
908908
# via feast (setup.py)
909909
types-protobuf==3.19.22
910910
# via

‎sdk/python/requirements/py3.9-requirements.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ toolz==0.12.1
198198
# partd
199199
tqdm==4.66.2
200200
# via feast (setup.py)
201-
typeguard==2.13.3
201+
typeguard==4.1.5
202202
# via feast (setup.py)
203203
types-protobuf==4.24.0.20240129
204204
# via mypy-protobuf

‎sdk/python/tests/unit/test_feature_views.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from datetime import timedelta
22

33
import pytest
4+
from typeguard import TypeCheckError
45

56
from feast.aggregation import Aggregation
67
from feast.batch_feature_view import BatchFeatureView
@@ -278,7 +279,7 @@ def test_hash():
278279

279280

280281
def test_field_types():
281-
with pytest.raises(TypeError):
282+
with pytest.raises(TypeCheckError):
282283
Field(name="name", dtype=ValueType.INT32)
283284

284285

‎setup.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
"tenacity>=7,<9",
7171
"toml>=0.10.0,<1",
7272
"tqdm>=4,<5",
73-
"typeguard==2.13.3",
73+
"typeguard>=4.0.0",
7474
"fastapi>=0.68.0",
7575
"uvicorn[standard]>=0.14.0,<1",
7676
"gunicorn",

0 commit comments

Comments
 (0)