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

Hide CommitOperationAdd's internal attributes #1716

Merged
merged 3 commits into from
Oct 6, 2023

Conversation

mariosasko
Copy link
Contributor

... so that IDEs stop displaying them in the auto-complete

@mariosasko mariosasko changed the title Hide CommitOperation's internal attributes Hide CommitOperationAdd's internal attributes Oct 5, 2023
Copy link
Contributor

@Wauplin Wauplin left a comment

Choose a reason for hiding this comment

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

Thanks, that looks better this way :)

src/huggingface_hub/_commit_api.py Outdated Show resolved Hide resolved
@mariosasko mariosasko force-pushed the commitoperationadd-hide-internal-attributes branch from 0d258b6 to 810f169 Compare October 5, 2023 16:27
@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Oct 5, 2023

The documentation is not available anymore as the PR was closed or merged.

mariosasko and others added 2 commits October 6, 2023 15:05
Co-authored-by: Lucain <lucainp@gmail.com>
@codecov
Copy link

codecov bot commented Oct 6, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (5d2d297) 82.42% compared to head (0e67884) 82.48%.
Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1716      +/-   ##
==========================================
+ Coverage   82.42%   82.48%   +0.05%     
==========================================
  Files          62       62              
  Lines        7244     7262      +18     
==========================================
+ Hits         5971     5990      +19     
+ Misses       1273     1272       -1     
Files Coverage Δ
src/huggingface_hub/_commit_api.py 93.17% <100.00%> (+1.22%) ⬆️

... and 5 files with indirect coverage changes

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

Copy link
Contributor

@Wauplin Wauplin left a comment

Choose a reason for hiding this comment

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

Thanks for making the change @mariosasko! Will merge it now that CI is ✔️

@Wauplin Wauplin merged commit f752932 into main Oct 6, 2023
16 checks passed
@Wauplin Wauplin deleted the commitoperationadd-hide-internal-attributes branch October 6, 2023 13:49
Wauplin added a commit that referenced this pull request Oct 10, 2023
* Hide `CommitOperationAdd`'s internal attributes

* Update src/huggingface_hub/_commit_api.py

Co-authored-by: Lucain <lucainp@gmail.com>

* Style

---------

Co-authored-by: Lucain <lucainp@gmail.com>
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.

3 participants