Skip to content

Commit e11795d

Browse files
Recompile protobufs with correct protobuf version (4.25.0)
Co-authored-by: franciscojavierarceo <4163062+franciscojavierarceo@users.noreply.github.com>
1 parent e9d1a47 commit e11795d

File tree

93 files changed

+4882
-6958
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+4882
-6958
lines changed

sdk/python/feast/protos/feast/core/Aggregation_pb2.py

Lines changed: 3 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/python/feast/protos/feast/core/Aggregation_pb2.pyi

Lines changed: 28 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -2,46 +2,42 @@
22
@generated by mypy-protobuf. Do not edit manually!
33
isort:skip_file
44
"""
5-
6-
from google.protobuf import descriptor as _descriptor
7-
from google.protobuf import duration_pb2 as _duration_pb2
8-
from google.protobuf import message as _message
9-
import builtins as _builtins
5+
import builtins
6+
import google.protobuf.descriptor
7+
import google.protobuf.duration_pb2
8+
import google.protobuf.message
109
import sys
11-
import typing as _typing
1210

13-
if sys.version_info >= (3, 10):
14-
from typing import TypeAlias as _TypeAlias
11+
if sys.version_info >= (3, 8):
12+
import typing as typing_extensions
1513
else:
16-
from typing_extensions import TypeAlias as _TypeAlias
14+
import typing_extensions
1715

18-
DESCRIPTOR: _descriptor.FileDescriptor
16+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
1917

20-
@_typing.final
21-
class Aggregation(_message.Message):
22-
DESCRIPTOR: _descriptor.Descriptor
18+
@typing_extensions.final
19+
class Aggregation(google.protobuf.message.Message):
20+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
2321

24-
COLUMN_FIELD_NUMBER: _builtins.int
25-
FUNCTION_FIELD_NUMBER: _builtins.int
26-
TIME_WINDOW_FIELD_NUMBER: _builtins.int
27-
SLIDE_INTERVAL_FIELD_NUMBER: _builtins.int
28-
column: _builtins.str
29-
function: _builtins.str
30-
@_builtins.property
31-
def time_window(self) -> _duration_pb2.Duration: ...
32-
@_builtins.property
33-
def slide_interval(self) -> _duration_pb2.Duration: ...
22+
COLUMN_FIELD_NUMBER: builtins.int
23+
FUNCTION_FIELD_NUMBER: builtins.int
24+
TIME_WINDOW_FIELD_NUMBER: builtins.int
25+
SLIDE_INTERVAL_FIELD_NUMBER: builtins.int
26+
column: builtins.str
27+
function: builtins.str
28+
@property
29+
def time_window(self) -> google.protobuf.duration_pb2.Duration: ...
30+
@property
31+
def slide_interval(self) -> google.protobuf.duration_pb2.Duration: ...
3432
def __init__(
3533
self,
3634
*,
37-
column: _builtins.str = ...,
38-
function: _builtins.str = ...,
39-
time_window: _duration_pb2.Duration | None = ...,
40-
slide_interval: _duration_pb2.Duration | None = ...,
35+
column: builtins.str = ...,
36+
function: builtins.str = ...,
37+
time_window: google.protobuf.duration_pb2.Duration | None = ...,
38+
slide_interval: google.protobuf.duration_pb2.Duration | None = ...,
4139
) -> None: ...
42-
_HasFieldArgType: _TypeAlias = _typing.Literal["slide_interval", b"slide_interval", "time_window", b"time_window"] # noqa: Y015
43-
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
44-
_ClearFieldArgType: _TypeAlias = _typing.Literal["column", b"column", "function", b"function", "slide_interval", b"slide_interval", "time_window", b"time_window"] # noqa: Y015
45-
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
40+
def HasField(self, field_name: typing_extensions.Literal["slide_interval", b"slide_interval", "time_window", b"time_window"]) -> builtins.bool: ...
41+
def ClearField(self, field_name: typing_extensions.Literal["column", b"column", "function", b"function", "slide_interval", b"slide_interval", "time_window", b"time_window"]) -> None: ...
4642

47-
Global___Aggregation: _TypeAlias = Aggregation # noqa: Y015
43+
global___Aggregation = Aggregation
Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,4 @@
11
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
22
"""Client and server classes corresponding to protobuf-defined services."""
33
import grpc
4-
import warnings
54

6-
7-
GRPC_GENERATED_VERSION = '1.76.0'
8-
GRPC_VERSION = grpc.__version__
9-
_version_not_supported = False
10-
11-
try:
12-
from grpc._utilities import first_version_is_lower
13-
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
14-
except ImportError:
15-
_version_not_supported = True
16-
17-
if _version_not_supported:
18-
raise RuntimeError(
19-
f'The grpc package installed is at version {GRPC_VERSION},'
20-
+ ' but the generated code in feast/core/Aggregation_pb2_grpc.py depends on'
21-
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
22-
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
23-
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
24-
)

sdk/python/feast/protos/feast/core/DataFormat_pb2.py

Lines changed: 7 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)