Unverified Commit 8b8e0431 authored by M Bernt's avatar M Bernt Committed by GitHub
Browse files

Add type annotation

parent c0eb6617
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -43,7 +43,7 @@ def rst_invalid(text):
    Return False if the supplied text is valid reStructuredText or
    a string indicating the problem.
    """
    invalid_rst = False
    invalid_rst: Union[bool, str] = False
    try:
        rst_to_html(text, error=True)
    except Exception as e: