Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automated Protos Update #809

Merged
merged 1 commit into from
Jan 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
244 changes: 122 additions & 122 deletions src/viam/gen/app/v1/app_pb2.py

Large diffs are not rendered by default.

14 changes: 11 additions & 3 deletions src/viam/gen/app/v1/app_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -3449,22 +3449,30 @@ class Model(google.protobuf.message.Message):
API_FIELD_NUMBER: builtins.int
MODEL_FIELD_NUMBER: builtins.int
MARKDOWN_DOCUMENTATION_FIELD_NUMBER: builtins.int
DESCRIPTION_FIELD_NUMBER: builtins.int
api: builtins.str
'The colon-delimited-triplet of the api implemented by the model'
model: builtins.str
'The colon-delimited-triplet of the model'
markdown_documentation: builtins.str
'The markdown content describing the usage of the model'
description: builtins.str
'A short description of the model that explains its purpose'

def __init__(self, *, api: builtins.str=..., model: builtins.str=..., markdown_documentation: builtins.str | None=..., description: builtins.str | None=...) -> None:
...

def __init__(self, *, api: builtins.str=..., model: builtins.str=..., markdown_documentation: builtins.str | None=...) -> None:
def HasField(self, field_name: typing.Literal['_description', b'_description', '_markdown_documentation', b'_markdown_documentation', 'description', b'description', 'markdown_documentation', b'markdown_documentation']) -> builtins.bool:
...

def HasField(self, field_name: typing.Literal['_markdown_documentation', b'_markdown_documentation', 'markdown_documentation', b'markdown_documentation']) -> builtins.bool:
def ClearField(self, field_name: typing.Literal['_description', b'_description', '_markdown_documentation', b'_markdown_documentation', 'api', b'api', 'description', b'description', 'markdown_documentation', b'markdown_documentation', 'model', b'model']) -> None:
...

def ClearField(self, field_name: typing.Literal['_markdown_documentation', b'_markdown_documentation', 'api', b'api', 'markdown_documentation', b'markdown_documentation', 'model', b'model']) -> None:
@typing.overload
def WhichOneof(self, oneof_group: typing.Literal['_description', b'_description']) -> typing.Literal['description'] | None:
...

@typing.overload
def WhichOneof(self, oneof_group: typing.Literal['_markdown_documentation', b'_markdown_documentation']) -> typing.Literal['markdown_documentation'] | None:
...
global___Model = Model
Expand Down
3 changes: 3 additions & 0 deletions src/viam/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@ def _alias_param(param_name: str, param_alias: str) -> Callable:
Returns:
The input function, plus param alias.
"""

def decorator(func: Callable):
@functools.wraps(func)
def wrapper(*args, **kwargs):
Expand All @@ -362,5 +363,7 @@ def wrapper(*args, **kwargs):
del kwargs[param_alias]
result = func(*args, **kwargs)
return result

return wrapper

return decorator
2 changes: 1 addition & 1 deletion src/viam/version_metadata.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.36.0"

API_VERSION = "v0.1.377"
API_VERSION = "v0.1.378"
SDK_VERSION = __version__