a Æ*Na8ã@snddlmZddlmZddlmZmZddlmZm Z m Z ddgZ Gdd„de eƒZ Gdd„de eeƒZ d S) é)Úcli)Ú exceptions)Ú RESTManagerÚ RESTObject)Ú DeleteMixinÚ ListMixinÚObjectDeleteMixinÚTodoÚ TodoManagerc@s*eZdZe d¡e ej¡dd„ƒƒZdS)r cKs6d|jj|jf}|jjj|fi|¤Ž}| |¡dS)aMark the todo as done. Args: **kwargs: Extra options to send to the server (e.g. sudo) Raises: GitlabAuthenticationError: If authentication is not correct GitlabTodoError: If the server failed to perform the request z%s/%s/mark_as_doneN)ÚmanagerÚpathÚidÚgitlabÚ http_postZ _update_attrs)ÚselfÚkwargsr Z server_data©rúr/private/var/folders/js/6pj4vh5d4zd0k6bxv74qrbhr0000gr/T/pip-target-22xwyzbs/lib/python/gitlab/v4/objects/todos.pyÚ mark_as_done s zTodo.mark_as_doneN) Ú__name__Ú __module__Ú __qualname__rÚregister_custom_actionÚexcÚ on_http_errorÚGitlabTodoErrorrrrrrr s c@s6eZdZdZeZdZe d¡e   e j ¡dd„ƒƒZ dS)r z/todos)ÚactionZ author_idZ project_idÚstateÚtypecKs|jjdi|¤ŽdS)a]Mark all the todos as done. Args: **kwargs: Extra options to send to the server (e.g. sudo) Raises: GitlabAuthenticationError: If authentication is not correct GitlabTodoError: If the server failed to perform the request Returns: int: The number of todos maked done ú/todos/mark_as_doneN)r)rr)rrrrrÚmark_all_as_done#szTodoManager.mark_all_as_doneN) rrrÚ_pathr Z_obj_clsZ _list_filtersrrrrrr rrrrr s  N)rrrrZ gitlab.baserrZ gitlab.mixinsrrrÚ__all__r r rrrrÚs  þ