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

refactor(python): Use cls (not self) in classmethods #16303

Merged
merged 1 commit into from
May 18, 2024

Conversation

twoertwein
Copy link
Contributor

Found using pyright.

@github-actions github-actions bot added internal An internal refactor or improvement python Related to Python Polars rust Related to Rust Polars labels May 17, 2024
Copy link

codecov bot commented May 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.79%. Comparing base (10d223b) to head (26e5494).

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #16303   +/-   ##
=======================================
  Coverage   80.78%   80.79%           
=======================================
  Files        1393     1393           
  Lines      179362   179362           
  Branches     2921     2921           
=======================================
+ Hits       144902   144916   +14     
+ Misses      33957    33943   -14     
  Partials      503      503           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@alexander-beedie alexander-beedie changed the title chore: Use cls for classmethods refactor(python): Use cls (not self) in classmethods May 18, 2024
@alexander-beedie
Copy link
Collaborator

alexander-beedie commented May 18, 2024

Looks good to me; well-spotted ;)
Thanks for the contribution!

@alexander-beedie alexander-beedie merged commit ac200ca into pola-rs:main May 18, 2024
16 checks passed
@twoertwein twoertwein deleted the cls branch May 18, 2024 19:00
Wouittone pushed a commit to Wouittone/polars that referenced this pull request Jun 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal An internal refactor or improvement python Related to Python Polars rust Related to Rust Polars
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants