From 27ca6bc0677cc3ccfcfe4203e07f2dd9b5ac8889 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Thu, 1 Oct 2026 11:37:05 -0500 Subject: Improve function documentation. Use python's official documentation format, specified by PEP 287 for documenting the function's parameters, return and exceptions. --- uploader/genotypes/models.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/uploader/genotypes/models.py b/uploader/genotypes/models.py index f3e6798..0a1a1e2 100644 --- a/uploader/genotypes/models.py +++ b/uploader/genotypes/models.py @@ -163,7 +163,19 @@ def genotype_dataset( ) -> Optional[dict]: """Retrieve genotype datasets from the database. - Apparently, you should only ever have one genotype dataset for a population. + There should only ever be one genotype dataset for each population. + + :param conn: The SQL database connection object. + :type conn: MySQLdb.Connection + :param species_id: The ID of the species. + :type species_id: int + :param population_id: The ID of the population. + :type population_id: int + :param dataset_id: The ID of the dataset. + :type dataset_id: int + + :rtype: dict + :raises uploader.dataerrors.NotFoundError: If dataset is not found. """ _query = ( "SELECT gf.* FROM Species AS s INNER JOIN InbredSet AS iset " -- cgit 1.4.1