Couldn't build proto file into descriptor pool [Python 3.13] #490
Labels
priority: p2
Moderately-important priority. Fix may not be included in next release.
status: investigating
The issue is under investigation, which is determined to be non-trivial.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Encountered this issue while testing
Python 3.13.0rc2
. To reproduce--
AFAICT the issue shows up as soon as two
proto.Enum
are defined in one module. A quick experiment suggests that the reason might be hereproto-plus-python/proto/enums.py
Lines 72 to 78 in e5e8533
The attributes are only filtered by
if isinstance(number, int)
. Python 3.13 added the new__firstlineno__
attribute which is an integer and as such not filtered as it should be. Just changing the condition here would be enough to resolve it, just not sure that's the best option as I'm unfamiliar with the code base.The text was updated successfully, but these errors were encountered: