Regex fix.

This commit is contained in:
Fabio Manganiello 2023-09-30 15:11:09 +02:00
parent 9e489bb5cf
commit a7bb81553c
Signed by untrusted user: blacklight
GPG key ID: D90FBA7F76362774

View file

@ -99,7 +99,7 @@ class DocstringParser:
_param_doc_re = re.compile(r"^:param\s+(?P<name>[\w_]+):\s+(?P<doc>.*)$") _param_doc_re = re.compile(r"^:param\s+(?P<name>[\w_]+):\s+(?P<doc>.*)$")
_type_doc_re = re.compile(r"^:type\s+[\w_]+:.*$") _type_doc_re = re.compile(r"^:type\s+[\w_]+:.*$")
_return_doc_re = re.compile(r"^:return:\s+(?P<doc>.*)$") _return_doc_re = re.compile(r"^:return:\s+(?P<doc>.*)$")
_default_docstring = re.compile(r"^\s*Initialize self\. See help.*$") _default_docstring = re.compile(r"^\s*Initialize self\.\s*See help.*$")
def __init__( def __init__(
self, self,