Improve docstring

This commit is contained in:
allegroai 2021-02-01 23:39:44 +02:00
parent 2f5080a34c
commit 1c1fecf7d0

View File

@ -1614,6 +1614,7 @@ class Task(IdObjectBase, AccessMixin, SetupUploadMixin):
""" """
Force the adding of a package to the requirements list. If ``package_version`` is not specified, use the Force the adding of a package to the requirements list. If ``package_version`` is not specified, use the
installed package version, if found. installed package version, if found.
Example: Task.add_requirements('tensorflow', '2.4.0')
:param str package_name: The package name to add to the "Installed Packages" section of the task. :param str package_name: The package name to add to the "Installed Packages" section of the task.
:param package_version: The package version requirements. If ``None``, then use the installed version. :param package_version: The package version requirements. If ``None``, then use the installed version.