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

1055 deprecate private and repo type in repository class #1057

Merged

Conversation

Wauplin
Copy link
Contributor

@Wauplin Wauplin commented Sep 16, 2022

Fix #1055.

I also start to think that clone_from method should be a standalone private helper (e.g.: not meant to be used by end users, just via the clone_from attribute at init). This would avoid having HF-specific attributes like repo_type in Repository: once initialized the value is not needed anymore.

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Sep 16, 2022

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

@codecov
Copy link

codecov bot commented Sep 16, 2022

Codecov Report

Merging #1057 (d7deb0e) into main (4ebc605) will increase coverage by 0.03%.
The diff coverage is 94.44%.

@@            Coverage Diff             @@
##             main    #1057      +/-   ##
==========================================
+ Coverage   83.97%   84.01%   +0.03%     
==========================================
  Files          38       38              
  Lines        4099     4109      +10     
==========================================
+ Hits         3442     3452      +10     
  Misses        657      657              
Impacted Files Coverage Δ
src/huggingface_hub/repository.py 80.33% <94.44%> (+0.33%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Member

@LysandreJik LysandreJik left a comment

Choose a reason for hiding this comment

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

Very clean! Thanks for handling backwards compatibility with the properties.

src/huggingface_hub/repository.py Outdated Show resolved Hide resolved
src/huggingface_hub/repository.py Outdated Show resolved Hide resolved
Copy link
Member

@LysandreJik LysandreJik left a comment

Choose a reason for hiding this comment

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

Whoops, missclicked.

@Wauplin Wauplin merged commit 6f1e813 into main Sep 19, 2022
@Wauplin Wauplin deleted the 1055-deprecate-private-and-repo-type-in-repository-class branch September 19, 2022 07:06
@Wauplin
Copy link
Contributor Author

Wauplin commented Sep 19, 2022

Thanks for the review :) I changed the wording and merged.

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.

Deprecate private and repo_type in Repository class
3 participants