mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-08-01 06:07:08 +00:00
Fix the doc filter to check only args values (#416)
This commit is contained in:
@@ -72,9 +72,9 @@ autodoc_preserve_defaults = True
|
||||
# the class docstring.
|
||||
def remove_lines_before_parameters(app, what, name, obj, options, lines):
|
||||
if what == "class":
|
||||
# ":" represents args values such as :param: or :raises:
|
||||
# ":param" represents args values
|
||||
first_idx_to_keep = next(
|
||||
(i for i, line in enumerate(lines) if line.startswith(":")), 0
|
||||
(i for i, line in enumerate(lines) if line.startswith(":param")), 0
|
||||
)
|
||||
lines[:] = lines[first_idx_to_keep:]
|
||||
|
||||
|
Reference in New Issue
Block a user