-
-
Notifications
You must be signed in to change notification settings - Fork 132
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 of "apply" is partially unknown #952
Comments
We can only use |
Yeah, replacing every |
If we really want to add better support for strict mode, we could add something in the CI, but I haven't had the time to figure out how to set up the github workflows/actions to handle 2 different |
Ill try to have a look if i have time |
Simplest case would probably to make a separate CI job that deletes the normal pyproject.toml and either generates a second right there or renames/moves another on in the repo before initializing the environment. |
I have created a CI configuration here: #954 |
I am again interested in getting some pyright strict warnings fixed that i get due to a lack of type parameters. This time for
df.apply
. However this already has a lot of overloads and i do not yet fully understand all of them.Firstly i do not quite understand this one:
that would be something like
Which just gives me an object series.
is that really the intended thing here? In that case that one could just go from taking a
Mapping -> Series
toMapping[Any, Any] -> Series[Any]
.All the ones that just return a dataframe should probably also have
Series[Any]
(or the equivalent for other generics).For all overloads that take a
and return a series i think one could probably try to parametrize that further and have the series again be
Series[S1]
. But bounds in a typevar cant be generic themselves.The text was updated successfully, but these errors were encountered: