-
-
Notifications
You must be signed in to change notification settings - Fork 139
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
type is_dtype_equal #1112
base: main
Are you sure you want to change the base?
type is_dtype_equal #1112
Conversation
4f10721
to
108c9d1
Compare
In the stubs, we don't include type definitions for methods that are not documented. In this case, On the other hand, if you think it should be documented, then you can raise an issue in the pandas repo, and we make a decision about this PR after the doc issue is resolved. |
sure thing, always happy to delete code |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have references to is_dtype_equal()
in pandas-stubs\api\types\__init__.pyi
and pandas-stubs\core\dtypes\api.pyi
that should be removed as well.
tests/extension/decimal/array.py
Outdated
@@ -28,7 +28,7 @@ | |||
) | |||
|
|||
from pandas.core.dtypes.base import ExtensionDtype | |||
from pandas.core.dtypes.common import ( | |||
from pandas.core.dtypes.common import ( # type: ignore[attr-defined] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UGH. Now that I see that this is used in a test (this one is copied from the pandas source), I think we need to open an issue in pandas
about documenting this. I'll do that, and keep this PR on hold.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Created pandas-dev/pandas#60905
assert_type()
to assert the type of any return valueThere's already a test for this one using
assert_type
;pandas-stubs/tests/test_api_types.py
Lines 125 to 126 in feebd47
the function just wasn't typed