Skip to content

Commit

Permalink
Update typeguard version to >=4
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Rhodes <767526+trhodeos@users.noreply.github.com>
  • Loading branch information
trhodeos committed Feb 5, 2024
1 parent bf026a0 commit f21dd70
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion sdk/python/feast/feature_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def __init__(
*,
name: str,
features: List[Union[FeatureView, OnDemandFeatureView]],
tags: Dict[str, str] = None,
tags: Optional[Dict[str, str]] = None,
description: str = "",
owner: str = "",
logging_config: Optional[LoggingConfig] = None,
Expand Down
2 changes: 1 addition & 1 deletion sdk/python/feast/feature_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def __init__(
name: str,
source: DataSource,
schema: Optional[List[Field]] = None,
entities: List[Entity] = None,
entities: Optional[List[Entity]] = None,
ttl: Optional[timedelta] = timedelta(days=0),
online: bool = True,
description: str = "",
Expand Down
2 changes: 1 addition & 1 deletion sdk/python/requirements/py3.10-ci-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -902,7 +902,7 @@ traitlets==5.13.0
# nbformat
trino==0.327.0
# via feast (setup.py)
typeguard==2.13.3
typeguard==4.1.5
# via feast (setup.py)
types-protobuf==3.19.22
# via
Expand Down
3 changes: 2 additions & 1 deletion sdk/python/requirements/py3.10-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,8 @@ toolz==0.12.0
# partd
tqdm==4.66.1
# via feast (setup.py)
typeguard==2.13.3
typeguard==4.1.5
# via feast (setup.py)
# via feast (setup.py)
types-protobuf==4.24.0.4
# via mypy-protobuf
Expand Down
2 changes: 1 addition & 1 deletion sdk/python/requirements/py3.8-ci-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -919,7 +919,7 @@ traitlets==5.13.0
# nbformat
trino==0.327.0
# via feast (setup.py)
typeguard==2.13.3
typeguard==4.1.5
# via feast (setup.py)
types-protobuf==3.19.22
# via
Expand Down
2 changes: 1 addition & 1 deletion sdk/python/requirements/py3.8-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ toolz==0.12.0
# partd
tqdm==4.66.1
# via feast (setup.py)
typeguard==2.13.3
typeguard==4.1.5
# via feast (setup.py)
types-protobuf==4.24.0.4
# via mypy-protobuf
Expand Down
2 changes: 1 addition & 1 deletion sdk/python/requirements/py3.9-ci-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -911,7 +911,7 @@ traitlets==5.13.0
# nbformat
trino==0.327.0
# via feast (setup.py)
typeguard==2.13.3
typeguard==4.1.5
# via feast (setup.py)
types-protobuf==3.19.22
# via
Expand Down
2 changes: 1 addition & 1 deletion sdk/python/requirements/py3.9-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ toolz==0.12.0
# partd
tqdm==4.66.1
# via feast (setup.py)
typeguard==2.13.3
typeguard==4.1.5
# via feast (setup.py)
types-protobuf==4.24.0.4
# via mypy-protobuf
Expand Down
3 changes: 2 additions & 1 deletion sdk/python/tests/unit/test_feature_views.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from datetime import timedelta

import pytest
from typeguard import TypeCheckError

from feast.aggregation import Aggregation
from feast.batch_feature_view import BatchFeatureView
Expand Down Expand Up @@ -278,7 +279,7 @@ def test_hash():


def test_field_types():
with pytest.raises(TypeError):
with pytest.raises(TypeCheckError):
Field(name="name", dtype=ValueType.INT32)


Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"tenacity>=7,<9",
"toml>=0.10.0,<1",
"tqdm>=4,<5",
"typeguard==2.13.3",
"typeguard>=4.0.0",
"fastapi>=0.68.0,<0.100",
"uvicorn[standard]>=0.14.0,<1",
"gunicorn",
Expand Down

0 comments on commit f21dd70

Please sign in to comment.