python stub for pack has incorrect type
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 76/100
Research direction
Start in src/idl_gen_python.cpp at the Pack stub-generation code around the linked line, and compare its declared return type with the value returned through End. Update the generated Python stub so Pack has the correct integer return type, then run the relevant Python stub-generation tests or generated-output checks to confirm the annotation.
Written by the indexing model from the issue text.
Description
The stub generator for the Pack function https://github.com/google/flatbuffers/blob/bab10754d93d74d1ff44d46de63558bc4127f7d8/src/idl_gen_python.cpp#L382 says Pack returns None, but it returns an integer since it returns the value from end End function which is an int (aka uoffset).
- Dominant language
- C++
- Stars
- 26.5k
- Forks
- 3.7k
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from google/flatbuffers
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
google/flatbuffers#9191 · 2 reactions ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
google/flatbuffers#9189 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 84/100
google/flatbuffers#9162 · 1 reaction ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
google/flatbuffers#9130 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
google/flatbuffers#9111 ·
All issues in google/flatbuffers
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
AXERA-TECH/ax-llm#77 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
bug-unconfirmed
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
NVIDIA/cuda-samples#453 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
infiniflow/infinity#3502 ·