-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
seaborn: complete and fix axisgrid module #11096
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
Conversation
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
x: ColumnName | _Vector | None = None, | ||
y: ColumnName | _Vector | None = None, | ||
hue: ColumnName | _Vector | None = None, | ||
kind: Literal["scatter", "kde", "hist", "hex", "reg", "resid"] = "scatter", |
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.
This was changed to str
earlier thanks to the feedback on the PR that introduced seaborn stubs. Upon further investigation, the function seems to only accepts this set of strings (also verified in the repl).
diag_vars: NDArray[Incomplete] | None # array of `str` | ||
diag_axes: NDArray[Incomplete] | None # array of `Axes` | ||
diag_vars: list[str] | None | ||
diag_axes: list[Axes] | None |
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.
These are lists, not sure why I typed them as arrays earlier
data: DataFrame, | ||
data: DataFrame | _SupportsDataFrame, |
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.
seaborn version 0.13 started supporting other data frames that support the __dataframe__
protocol: https://seaborn.pydata.org/whatsnew/v0.13.0.html#support-for-alternate-dataframe-libraries
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.
I did not compare this to the implementation, but all the changes LGTM.
No description provided.