Ignored mypy error when using hypothesis
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- python
- Domain
- testing-qa, tooling
Research direction
Reproduce the error with pre-commit run mypy --files tests/routers/v1/datasets_list_datasets_test.py and compare it with running mypy directly in a fresh environment. Start at tests/routers/v1/datasets_list_datasets_test.py:241; done means the pre-commit check no longer reports the untyped Hypothesis decorator error.
Written by the indexing model from the issue text.
Description
The following mypy error arises when running pre-commit run mypy --files tests/routers/v1/datasets_list_datasets_test.py.
tests/routers/v1/datasets_list_datasets_test.py:241: error: Untyped decorator makes function "test_list_data_identical" untyped [misc]
but it doesn't happen in a fresh environment when installing the dependencies and running mypy directly, only when running through pre-commit. I already enforced the installation of hypothesis as a dependency and the use of python 3.12, but neither resolved the issue.
The most closely related issue I could find is https://github.com/HypothesisWorks/hypothesis/issues/2917 which suggests this problem would have been solved years ago.
- Dominant language
- Python
- Stars
- 16
- Forks
- 50
- PR merge metrics
- No merged PRs in 30d
Getting set up
We have not checked this project's setup files yet. 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 openml/server-api
-
behavior
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
openml/server-api#337 · 1 comment ·
-
Redesign POST /data/untag for v2Possibly taken @omosola claimed this 27 days ago. Openproposal
openml/server-api#375 · 2 comments · 1 assignee ·
-
Redesign POST /data/tag for v2Possibly taken @omosola claimed this 27 days ago. Open
openml/server-api#374 · 2 comments · 1 assignee ·
-
Redesign POST /data/qualities/unprocessed/{data_engine_id}/{order} for v2Possibly taken @omosola claimed this 27 days ago. Open
openml/server-api#373 · 1 assignee ·
-
Redesign POST /data/qualities for v2Possibly taken @omosola claimed this 27 days ago. Open
openml/server-api#372 · 1 assignee ·
All issues in openml/server-api
Similar issues
-
needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
openvinotoolkit/openvino_notebooks#3665 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
Maintainers usually reply within 1 day
-
docs
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
benchmark-gap
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day