Define `PyRaftServiceClient` method return types
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Domain
- distributed-systems
Research direction
Start by reading binding/python/src/bindings/raft_client.rs at the linked methods and the existing raftify.pyi declarations, then consult the referenced PyO3 and pyo3-asyncio documentation. Done means each function has an appropriate declared return type, with the required Py- prefixed wrapper structs and inner fields used consistently where needed.
Written by the indexing model from the issue text.
Description
GOAL
Let's specify return types of functions in raft_client.rs file like:
https://github.com/lablup/raftify/blob/914d3fa0f0830436031196c03d657d21d5f1d6ab/binding/python/src/bindings/raft_client.rs#L27-L32
TODO
I'm totally newbie with python-rust mapping... so need to:
- Learn pyo3(https://pyo3.rs/v0.20.2/) and pyo3-asyncio(https://github.com/awestlake87/pyo3-asyncio) first
- Learn raft_client.rs code:
&'agrammar and attributes like#[pyclass], #[pymethods], ...,into()function, etc ... - Finally write some code
-
raftify.pyi: declare return type for each functions -
raft_client.rs(or somewhere else if needed..?)- Define new struct and implementation
- RULES: Use
Py-as prefix, makeinnerfield in it.
- RULES: Use
- Change return statements by wrapping objects in proper return type.
- Define new struct and implementation
-
- Dominant language
- Rust
- Stars
- 44
- Forks
- 14
- PR merge metrics
- No merged PRs in 30d
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- No contributing 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 lablup/raftify
-
integration-test
Difficulty 4/5 3-5 days Newbie friendliness 38/100
-
dx
Difficulty 5/5 Over a week Newbie friendliness 32/100
-
feature log-storage snapshot
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
good first issue log-storage test
Difficulty 3/5 1-2 days Newbie friendliness 42/100
-
feature
Difficulty 4/5 3-5 days Newbie friendliness 38/100
Similar issues
-
area:ui effort:medium enhancement P7 source:agent
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
marketing
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
documentation priority: low tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
nledford/Ladderback#1823 ·
Maintainers usually reply within 1 day
-
psmux-resurrect: restoring a session with a numeric name puts its windows into the wrong session (`new-window -t 4` is read as window 4)Possibly taken @ealwanlee claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
psmux/psmux-plugins#47 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 87/100
Maintainers usually reply within 1 day