[Bug] in Intermediate empty-tuple exercise
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 55/100
Research direction
Open the Intermediate empty-tuple exercise at the linked URL and inspect the example containing foo((1)). Verify the exercise input is interpreted as a tuple and that its type-checking behavior matches the stated expectation; the issue is done when the example no longer passes incorrectly.
Written by the indexing model from the issue text.
Description
Hi, I believe there is a bug in the in Intermediate empty-tuple exercise.
Relevant code:
foo((1)) # expect-type-error
(1) is not a tuple, but rather an integer, I believe a comma is missing. In effect, typing the function argument as tuple only will (incorrectly) pass the challenge.
Solution is to add a comma to make the argument a tuple:
foo((1,)) # expect-type-error
Thanks for providing fun and educative typing challenges.
- Dominant language
- Python
- Stars
- 628
- Forks
- 36
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
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 laike9m/Python-Type-Challenges
-
documentation
Difficulty 1/5 Under an hour Newbie friendliness 72/100
-
[Web] Use HTMX to random page.Possibly taken A pull request linked to this issue is open or already merged. Openperformance
Difficulty 3/5 1-2 days Newbie friendliness 45/100
laike9m/Python-Type-Challenges#104 · 3 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 42/100
laike9m/Python-Type-Challenges#88 · 6 comments ·
-
good first issue help wanted
Difficulty 4/5 3-5 days Newbie friendliness 25/100
laike9m/Python-Type-Challenges#57 · 3 comments ·
-
good first issue help wanted
Difficulty 5/5 Over a week Newbie friendliness 20/100
laike9m/Python-Type-Challenges#56 · 1 comment ·
All issues in laike9m/Python-Type-Challenges
Similar issues
-
[Bug]: Bedrock request metadata forwarding does not work for /embeddingsPossibly taken A pull request linked to this issue is open or already merged. Openbug llm translation
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Arkansas 2025 tax is $1.70 high above $100,000 net taxable income ($3,809 + 3.9% rule)Possibly taken @PavelMakarchuk claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
PolicyEngine/policyengine-us#9828 ·
Maintainers usually reply within 2 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
jellyfin/jellyfin-mpv-shim#800 ·
Maintainers usually reply within 1 day
-
skillfs: one malformed chat-log line aborts the entire skill-usage analysis (skill_usage_from_chat_logs.py)Possibly taken @zjncs claimed this today. Opencomponent:skillfs
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
agentic-os-org/ANOLISA#6116 · 1 comment ·
Maintainers usually reply within 1 day
-
P4: low query
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
jeffknupp/association#336 ·