Skip to content
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

ci: Fix doctests #13831

Merged
merged 1 commit into from
Jan 19, 2024
Merged

ci: Fix doctests #13831

merged 1 commit into from
Jan 19, 2024

Conversation

stinodego
Copy link
Member

No description provided.

@github-actions github-actions bot added internal An internal refactor or improvement python Related to Python Polars rust Related to Rust Polars labels Jan 19, 2024
@@ -206,17 +206,17 @@ def encode(self, encoding: TransferEncoding) -> Expr:
... )
>>> colors.with_columns(
... pl.col("code").bin.encode("hex").alias("code_encoded_hex"),
... )
... ) # doctest: +IGNORE_RESULT
Copy link
Member Author

Choose a reason for hiding this comment

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

I couldn't get these special characters right. Will check later - either improve the display of these binary types or we can change the example.

Copy link
Member

Choose a reason for hiding this comment

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

Ah.. Yeap, had the same.

I think the special characters are fine. It is more information than [binary data], but somehow doctest doesn't understand it?

Copy link
Member Author

Choose a reason for hiding this comment

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

In my terminal it looks like below, but when I copy paste it into the example the spacing is off. Not sure what is going on. Have to look a bit more closely.

Indeed this is a nice improvement over just displaying [binary data]!

image

@stinodego stinodego marked this pull request as ready for review January 19, 2024 09:18
@ritchie46 ritchie46 merged commit dba34ee into main Jan 19, 2024
12 checks passed
@ritchie46 ritchie46 deleted the fix-doctests branch January 19, 2024 09:21
@c-peters c-peters added the accepted Ready for implementation label Jan 23, 2024
r-brink pushed a commit to r-brink/polars that referenced this pull request Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted Ready for implementation internal An internal refactor or improvement python Related to Python Polars rust Related to Rust Polars
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants