You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
defcreate_user(username: str, age: int=20, is_active: bool=True) ->dict:
""" Creates a user with the given username, age, and activity status. Some more description here. Taking several lines. :param username: The username of the user. :type username: str :param age: The age of the user. Defaults to 20. :type age: int :param is_active: Indicates if the user is active. Defaults to True. :type is_active: bool :return: A dictionary representing the created user. :rtype: dict Example: >>> create_user("Alice", 25) {'username': 'Alice', 'age': 25, 'is_active': True} """return {"username": username, "age": age, "is_active": is_active}
fromdocstring_parserimportparset=parse(create_user.__doc__)
The docs are valid RST docs, but are not parsed correctly.
Consider this function:
The docs are valid RST docs, but are not parsed correctly.
Expected:
Actual:
The text was updated successfully, but these errors were encountered: