Skip to content
This repository was archived by the owner on Jun 9, 2025. It is now read-only.

Commit 48f76b4

Browse files
Update betterproto (#70)
* Set the min supported version of betterproto to 0.5.1 * Update lockfile
1 parent d0a2832 commit 48f76b4

File tree

4 files changed

+16
-17
lines changed

4 files changed

+16
-17
lines changed

poetry.lock

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

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ packages = [
2626

2727
[tool.poetry.dependencies]
2828
python = "^3.10"
29-
betterproto2 = { version = "^0.5.0", extras = ["grpclib"] }
29+
betterproto2 = { version = "^0.5.1", extras = ["grpclib"] }
3030
# betterproto2 = { git="https://github.com/betterproto/python-betterproto2" }
3131
# betterproto2 = { path = "../python-betterproto2", extras = ["grpclib"] }
3232
# The Ruff version is pinned. To update it, also update it in .pre-commit-config.yaml

src/betterproto2_compiler/known_types/any.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def unpack(self, message_pool: "betterproto2.MessagePool | None" = None) -> bett
3737
except KeyError:
3838
raise TypeError(f"Can't unpack unregistered type: {self.type_url}")
3939

40-
return message_type().parse(self.value)
40+
return message_type.parse(self.value)
4141

4242
def to_dict(self, **kwargs) -> dict[str, typing.Any]:
4343
# TODO allow passing a message pool to `to_dict`

src/betterproto2_compiler/plugin/main.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ def main() -> None:
1515
data = sys.stdin.buffer.read()
1616

1717
# Parse request
18-
request = CodeGeneratorRequest()
19-
request.parse(data)
18+
request = CodeGeneratorRequest.parse(data)
2019

2120
dump_file = os.getenv("BETTERPROTO_DUMP")
2221
if dump_file:

0 commit comments

Comments
 (0)