Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
synapse
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maunium
synapse
Commits
e7c77a87
Unverified
Commit
e7c77a87
authored
2 years ago
by
David Robertson
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Correct annotation of `_iterate_over_text` (#12860)
parent
81d9f2a8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
changelog.d/12860.misc
+1
-0
1 addition, 0 deletions
changelog.d/12860.misc
synapse/rest/media/v1/preview_html.py
+1
-1
1 addition, 1 deletion
synapse/rest/media/v1/preview_html.py
with
2 additions
and
1 deletion
changelog.d/12860.misc
0 → 100644
+
1
−
0
View file @
e7c77a87
Correct a type annotation in the URL preview source code.
This diff is collapsed.
Click to expand it.
synapse/rest/media/v1/preview_html.py
+
1
−
1
View file @
e7c77a87
...
@@ -281,7 +281,7 @@ def parse_html_description(tree: "etree.Element") -> Optional[str]:
...
@@ -281,7 +281,7 @@ def parse_html_description(tree: "etree.Element") -> Optional[str]:
def
_iterate_over_text
(
def
_iterate_over_text
(
tree
:
"
etree.Element
"
,
*
tags_to_ignore
:
Iterable
[
Union
[
str
,
"
etree.Comment
"
]
]
tree
:
"
etree.Element
"
,
*
tags_to_ignore
:
Union
[
str
,
"
etree.Comment
"
]
)
->
Generator
[
str
,
None
,
None
]:
)
->
Generator
[
str
,
None
,
None
]:
"""
Iterate over the tree returning text nodes in a depth first fashion,
"""
Iterate over the tree returning text nodes in a depth first fashion,
skipping text nodes inside certain tags.
skipping text nodes inside certain tags.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment