Align implementations and signatures of public methods handling primitives.
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
Research direction
Read the implementations of send_primitive and send_collection_of_primitive_async in packages/http/httpx/kiota_http/httpx_request_adapter.py, starting with the linked method definitions. Align send_primitive with the type-parameter approach used by the collection method, and confirm that both public signatures provide consistent type validation and static-analysis behavior.
Written by the indexing model from the issue text.
Description
The implementations for send_primitive and send_collection_of_primitive_async is inconsistent.
If you take a look at the implementation for send_primitive, you'll see that it expects string literals.
However, the implementation for send_collection_of_primitive_async expects types, so making them consistent would be the breaking change.
At the next major version we should change the implementation of send_primitive to take a type parameter instead rather than string literals. This will enable better type validation and more accurate static analysis of parameter passed into the function
- Dominant language
- Python
- Stars
- 31
- Forks
- 39
- Avg merge
- 11h 45m
- Merged PRs (30d)
- 42
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 microsoft/kiota-python
-
help wanted type:bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
microsoft/kiota-python#477 · 2 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 72/100
microsoft/kiota-python#737 · 1 comment ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
microsoft/kiota-python#722 · 1 comment ·
-
Difficulty 5/5 Over a week Newbie friendliness 18/100
microsoft/kiota-python#533 · 1 comment · 1 reaction ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
microsoft/kiota-python#501 · 1 reaction ·
All issues in microsoft/kiota-python
Similar issues
-
documentation help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
simonw/sqlite-utils#872 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100