Merge pull request #7263 from michaelpoluektov/fix/docstring-event-emitter

fix: docstring event emitter
This commit is contained in:
Timothy Jaeryang Baek 2024-11-22 16:06:46 -08:00 committed by GitHub
commit c561a4c42b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -109,9 +109,12 @@ def parse_docstring(docstring):
for line in docstring.splitlines():
match = param_pattern.match(line.strip())
if match:
param_name, param_description = match.groups()
param_descriptions[param_name] = param_description
if not match:
continue
param_name, param_description = match.groups()
if param_name.startswith("__"):
continue
param_descriptions[param_name] = param_description
return param_descriptions