-
Notifications
You must be signed in to change notification settings - Fork 572
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
conflicting_files
of DiscussionWithDetails
is returned as a bool
#1830
Comments
Thanks for the report @ademait. I've looked into the backend and we indeed have a comment
Meaning that yes, a value |
Yes, I'll look at it over the next few days! However, I think that returning a variable that can be either a bool or a list (i.e., not having a specific type) is not a good practice. |
Yep, maybe not best but not problematic enough to consider changing the API right now either 🙂 Let's hope that if we type annotate it in the documentation and code, most issues will be avoided. Btw, out of curiosity what is your use case for checking conflicting files in PRs? Are you building some projects around the Community Tab? |
Hi @Wauplin , I agree. Yes, I'm researcher, and I'm interested in open source, community management among others. We also try to underline the importance of social aspects of open source development. We are currently working on HFCommunity, providing easy and direct access to the Hub so researchers and everyone can leverage on. So that's way I'm digging into each library method 😄 I try to report everything I see. |
Interesting! And yes, your feedback on the API in the last days is definitely much appreciated 🙏 🙏 |
For further feedback, should I open an issue for each report? Or do you prefer to keep the discussion in this thread? |
Cool project! |
I'd say it's preferable to open new issues when topics are different. It's easier for me to keep track of them. Thanks in advance! |
@ademait Yes let's continue the chat on Discord if that's easier for feedback (my username: wauplinhf). Otherwise I'll be waiting for the new threads 😨 😄 |
Hi @Wauplin , I tried submitting the PR but I'm having some issues with the pip install -e ".[docs]" However, when generating the docs with: doc-builder build huggingface_hub docs/source/en/ --build_dir ~/tmp/test-build It throws:
I tried a few times. I don't really know why it crashes. But as it is a minimal change I thought of reporting it directly here. Cheers, |
Hmm, this is a bit hard to help with. I don't see a reason why it would break the docs so could you try:
(nit) also about the change itself, it'd be nice to update the type in the docstring to
Thanks again for your help! |
Hi @Wauplin , I created the PR, it's already linked. |
Thanks for the PR @ademait! Regarding the issue with building documentation locally, it is because the |
Great @Wauplin ! Thank you |
Describe the bug
The
conflicting_files
parameter ofDiscussionWithDetails
object is returned as a bool when I call theget_discussion_details
method. It happens with modeloliverguhr/fullstop-punctuation-multilang-large
in discussion number 6. The object (not full) is:Reproduction
repo_name = 'oliverguhr/fullstop-punctuation-multilang-large'
details = api.get_discussion_details(repo_id=repo_name, discussion_num=6, repo_type='model, token=ACCESS_TOKEN)
Logs
System info
The text was updated successfully, but these errors were encountered: