danielgtaylor / danielgtaylor/python-betterproto

oneof with enum : which_one_of returns the wrong value when enum is the first field

Open
#63 0 comments 0 reactions 0 assignees View on GitHub
bug has test high priority medium
Dominant language
Python
Stars
1.8k
Forks
234
PR merge metrics
No merged PRs in 30d

Description

See commit https://github.com/boukeversteegh/python-betterproto/commit/71737cf696bbee0fad726427fe7df167202ea79a

test case `oneof_enum`

Contributor guide

Open the contributing guide

Research direction

Review commit 71737cf696bbee0fad726427fe7df167202ea79a and locate the `oneof_enum` test case. Trace how `which_one_of` handles an enum declared as the first field, then verify that it returns the expected value for that case.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.