GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||
GeezerVison is showing github.com — fix: Improve `Any` decode error by MarkDaoust · Pull Request #712 · googleapis/python-api-core
This repository was archived by the owner on Feb 23, 2026. It is now read-only.
Conversation
|
|
@MarkDaoust Hmm looking at your comment above, is this right syntax |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
🤖 I detect that the PR title and the commit message differ and there's only one commit. To use the PR title for the commit history, you can use Github's automerge feature with squashing, or use -- conventional-commit-lint bot |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| with pytest.raises( | ||
| TypeError, | ||
| match=re.escape( | ||
| "Could not convert `google.protobuf.any_pb2.Any` with underlying type `google.type.Date` to `google.type.TimeOfDay`" |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Am I reading this correct or should it instead be the following? (My assumption is that the underlying type should be Any).
| "Could not convert `google.protobuf.any_pb2.Any` with underlying type `google.type.Date` to `google.type.TimeOfDay`" | |
| "Could not convert `google.type.Date` with underlying type `google.protobuf.any_pb2.Any` to `google.type.TimeOfDay`" |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Fixed in dc33849
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
from_any_pb gives a useless error message when the type names don't match.
There was an error while loading. Please reload this page.