We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b65290 commit 7ff9c3aCopy full SHA for 7ff9c3a
pep_sphinx_extensions/pep_processor/transforms/pep_headers.py
@@ -171,12 +171,7 @@ def _process_discourse_url(parts: list[str]) -> tuple[str, str]:
171
f"{'/'.join(parts)} not a link to a Discourse thread or category")
172
173
first_subpart = parts[4]
174
- try:
175
- int(first_subpart)
176
- except ValueError:
177
- has_title = True
178
- else:
179
- has_title = False
+ has_title = not first_subpart.isnumeric()
180
181
if "t" in parts:
182
item_type = "post" if len(parts) > (5 + has_title) else "thread"
0 commit comments