diff --git a/sphinx/util/__init__.py b/sphinx/util/__init__.py index 6ae5e6162..83b2561f2 100644 --- a/sphinx/util/__init__.py +++ b/sphinx/util/__init__.py @@ -47,8 +47,8 @@ if TYPE_CHECKING: logger = logging.getLogger(__name__) # Generally useful regular expressions. -ws_re = re.compile(r'\s+') # type: Pattern -url_re = re.compile(r'(?P.+)://.*') # type: Pattern +ws_re = re.compile(r'\s+') +url_re = re.compile(r'(?P.+)://.*') # High-level utility functions.