Skip to content

Feature: teach astroid about Hypothesis' @st.composite decorator #820

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 14, 2020

Conversation

Zac-HD
Copy link
Contributor

@Zac-HD Zac-HD commented Jul 20, 2020

Hypothesis' @st.composite decorator removes (ie supplies for the caller) the first argument of the decorated function. This has been a small frustration for many people, and caused a large number of # pylint: disable=no-value-for-parameter comments.

Recently, with HypothesisWorks/hypothesis#2498, I personally got annoyed on behalf of our users (and, OK, at being repeatedly asked about it) enough to look up Pylint's plugin system, and a few hours later here we are! I must say it's a very smooth extension API 😄

Imitating the boto3 brain there aren't any tests, but I've confirmed it's working locally - just let me know what if anything else I need to do.

@Zac-HD Zac-HD force-pushed the hypothesis-plugin branch from 565040a to d7a2f9d Compare July 21, 2020 01:02
@Zac-HD Zac-HD force-pushed the hypothesis-plugin branch from d7a2f9d to 0bb5ae9 Compare July 21, 2020 01:07
Copy link
Contributor

@PCManticore PCManticore left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the clear patch, folks.

@PCManticore PCManticore merged commit 290df48 into pylint-dev:master Sep 14, 2020
@Zac-HD Zac-HD deleted the hypothesis-plugin branch October 2, 2020 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants