From 44d5941affe35548c3ad073c12997c9ab5fdf4a1 Mon Sep 17 00:00:00 2001 From: Lucain Date: Wed, 17 Aug 2022 11:11:38 +0200 Subject: [PATCH] Update src/huggingface_hub/hf_api.py Co-authored-by: Lysandre Debut --- src/huggingface_hub/hf_api.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/huggingface_hub/hf_api.py b/src/huggingface_hub/hf_api.py index 4e02ad1d19..dec2f4241f 100644 --- a/src/huggingface_hub/hf_api.py +++ b/src/huggingface_hub/hf_api.py @@ -3262,6 +3262,7 @@ def _parse_revision_from_pr_url(pr_url: str) -> str: ```py >>> _parse_revision_from_pr_url("https://huggingface.co/bigscience/bloom/discussions/2") "refs/pr/2" + ``` """ re_match = re.match(_REGEX_DISCUSSION_URL, pr_url) if re_match is None: