Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions readme_renderer/clean.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def clean(
link_rel="nofollow",
url_schemes={"http", "https", "mailto"},
)

return cleaned
except ValueError:
return None
else:
return cleaned
4 changes: 2 additions & 2 deletions readme_renderer/rst.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.

import io
from typing import Any, Dict, IO, Optional
from typing import Any, ClassVar, Dict, IO, Optional

from docutils.core import publish_parts
from docutils.nodes import Element
Expand All @@ -26,7 +26,7 @@
class ReadMeHTMLTranslator(HTMLTranslator):

# Overrides base class not to output `<object>` tag for SVG images.
object_image_types: Dict[str, str] = {}
object_image_types: ClassVar[Dict[str, str]] = {}

def emptytag(
self,
Expand Down