posit-dev / posit-dev/py-shiny
`req()` should return it's first truthy value
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.8k
- Forks
- 135
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 21
Description
Similar to how it does in R (it currently always returns None)
>>> import shiny
>>> print(shiny.req(1, 2))
None
> library(shiny)
> req(1, 2)
[1] 1
Contributor guide
No contributing guide indexed for this repository
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.
Research direction
Start by locating the Python implementation of the req() entry point and any existing tests for its return value. Reproduce the issue with req(1, 2), then verify that the documented truthy-value behavior is covered by tests and that the call returns 1.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend-api-design
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100