Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
mat2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Romain
mat2
Commits
0c75cd15
Commit
0c75cd15
authored
5 years ago
by
Julien (jvoisin) Voisin
Browse files
Options
Downloads
Patches
Plain Diff
Remove a mypy workaround to bump coverage back to 100%
parent
5280b6c2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libmat2/web.py
+4
-4
4 additions, 4 deletions
libmat2/web.py
with
4 additions
and
4 deletions
libmat2/web.py
+
4
−
4
View file @
0c75cd15
...
...
@@ -97,10 +97,10 @@ class _HTMLParser(parser.HTMLParser):
self
.
tag_blocklist
=
blocklisted_tags
def
handle_starttag
(
self
,
tag
:
str
,
attrs
:
List
[
Tuple
[
str
,
Optional
[
str
]]]):
original_tag
=
self
.
get_starttag_text
()
if
not
original_tag
:
# empty tag
return
self
.
__validation_queue
.
append
(
original_tag
)
# Ignore the type, because mypy is too stupid to infer
# that get_starttag_text() can't return None.
original_tag
=
self
.
get_starttag_text
()
# type: ignore
self
.
__validation_queue
.
append
(
original_tag
)
# type: ignore
if
tag
in
self
.
tag_blocklist
:
self
.
__in_dangerous_tag
+=
1
...
...
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