Skip to content

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

Merged
merged 1 commit into from
Dec 4, 2023

Conversation

hamdanal
Copy link
Contributor

@hamdanal hamdanal commented Dec 2, 2023

No description provided.

Copy link
Contributor

github-actions bot commented Dec 2, 2023

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",
Copy link
Contributor Author

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).

Comment on lines -130 to +288
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
Copy link
Contributor Author

@hamdanal hamdanal Dec 2, 2023

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

Comment on lines -63 to +214
data: DataFrame,
data: DataFrame | _SupportsDataFrame,
Copy link
Contributor Author

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

Copy link
Collaborator

@srittau srittau left a 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.

@srittau srittau merged commit 0f72418 into python:main Dec 4, 2023
@hamdanal hamdanal deleted the seaborn-axisgrid branch December 5, 2023 19:29
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.

2 participants