Skip to content

stubtest inconsistencies #313

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 6 commits into from
Sep 21, 2022
Merged

stubtest inconsistencies #313

merged 6 commits into from
Sep 21, 2022

Conversation

twoertwein
Copy link
Member

Was trying to go through the "differs from runtime argument" errors from stubtest. Stubtest reports too many (redundant/slightly misleading) errors python/mypy#13676 - I wasn't motivated enough to parse its long output.

@twoertwein twoertwein marked this pull request as draft September 19, 2022 14:04
@bashtage
Copy link
Contributor

How are you running stubtest?

@twoertwein
Copy link
Member Author

How are you running stubtest?

poe stubtest (see poe --help for more options) and then grep'ing for specific error phrases.

Could maybe start creating a small allowlist to cover deprecated arguments?

@twoertwein twoertwein marked this pull request as ready for review September 20, 2022 23:09
@@ -1,7 +1,7 @@
def mask_missing(arr, values_to_mask): ...
def clean_fill_method(method, allow_nearest: bool = ...): ...
def clean_interp_method(method, **kwargs): ...
def find_valid_index(values, how: str): ...
def find_valid_index(values, how: str = ...): ...
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not in the docs, so delete??

@twoertwein
Copy link
Member Author

Could maybe start creating a small allowlist to cover deprecated arguments?

I started to have a small allowlist for stubtest:

# deprecated arguments
pandas.testing.assert_series_equal
pandas.*.get_loc
# need keyword-only for overloads
pandas.*.rolling

There is obviously much more to add. I did not add it, but I'm happy to add it if other people also use stubtest and/or want to extent this list.

@Dr-Irv
Copy link
Collaborator

Dr-Irv commented Sep 21, 2022

thanks @twoertwein

@Dr-Irv Dr-Irv merged commit 95885b8 into pandas-dev:main Sep 21, 2022
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.

4 participants