Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ec43799

Browse files
committedFeb 5, 2024
Update typeguard version to >=3.0.2
Signed-off-by: Tyler Rhodes <tyler.rhodes@equilibriumenergy.com> Update reqs Signed-off-by: Tyler Rhodes <tyler.rhodes@equilibriumenergy.com> Bump to typeguard 4+ to fix agronholm/typeguard#318 fix fix2 Fix error typeguard
1 parent bf026a0 commit ec43799

10 files changed

+12
-10
lines changed
 

‎sdk/python/feast/feature_service.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def __init__(
5656
*,
5757
name: str,
5858
features: List[Union[FeatureView, OnDemandFeatureView]],
59-
tags: Dict[str, str] = None,
59+
tags: Optional[Dict[str, str]] = None,
6060
description: str = "",
6161
owner: str = "",
6262
logging_config: Optional[LoggingConfig] = None,

‎sdk/python/feast/feature_view.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def __init__(
101101
name: str,
102102
source: DataSource,
103103
schema: Optional[List[Field]] = None,
104-
entities: List[Entity] = None,
104+
entities: Optional[List[Entity]] = None,
105105
ttl: Optional[timedelta] = timedelta(days=0),
106106
online: bool = True,
107107
description: str = "",

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -902,7 +902,7 @@ traitlets==5.13.0
902902
# nbformat
903903
trino==0.327.0
904904
# via feast (setup.py)
905-
typeguard==2.13.3
905+
typeguard==4.1.5
906906
# via feast (setup.py)
907907
types-protobuf==3.19.22
908908
# via

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,8 @@ toolz==0.12.0
196196
# partd
197197
tqdm==4.66.1
198198
# via feast (setup.py)
199-
typeguard==2.13.3
199+
typeguard==4.1.5
200+
# via feast (setup.py)
200201
# via feast (setup.py)
201202
types-protobuf==4.24.0.4
202203
# via mypy-protobuf

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,7 @@ traitlets==5.13.0
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

+1-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ toolz==0.12.0
201201
# partd
202202
tqdm==4.66.1
203203
# via feast (setup.py)
204-
typeguard==2.13.3
204+
typeguard==4.1.5
205205
# via feast (setup.py)
206206
types-protobuf==4.24.0.4
207207
# via mypy-protobuf

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -911,7 +911,7 @@ traitlets==5.13.0
911911
# nbformat
912912
trino==0.327.0
913913
# via feast (setup.py)
914-
typeguard==2.13.3
914+
typeguard==4.1.5
915915
# via feast (setup.py)
916916
types-protobuf==3.19.22
917917
# via

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ toolz==0.12.0
196196
# partd
197197
tqdm==4.66.1
198198
# via feast (setup.py)
199-
typeguard==2.13.3
199+
typeguard==4.1.5
200200
# via feast (setup.py)
201201
types-protobuf==4.24.0.4
202202
# via mypy-protobuf

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

+2-1
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

+1-1
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,<0.100",
7575
"uvicorn[standard]>=0.14.0,<1",
7676
"gunicorn",

0 commit comments

Comments
 (0)
Please sign in to comment.