diff options
author | Munyoki Kilyungi | 2022-10-11 17:37:20 +0300 |
---|---|---|
committer | BonfaceKilz | 2022-11-02 17:36:22 +0300 |
commit | 2e85b5c7c4be181182f263fcb644abd173be83c1 (patch) | |
tree | bd34c19c3d41e6435495fa4da6dd56d886bcb96d /gn3/db_utils.py | |
parent | 29977a9c52e95ac58cbc402908e26998788f0820 (diff) | |
download | genenetwork3-2e85b5c7c4be181182f263fcb644abd173be83c1.tar.gz |
Fix pylint and mypy errors
* gn3/db/sample_data.py (get_trait_csv_sample_data): Pass __query
directly to cursor.execute. Rename value to _value in for loop to
make mypy pass.
* gn3/db_utils.py (Connection): Add class docstring.
(Connection.cursor): Add docstring.
* mypy.ini: Add an entry for xapian.
Diffstat (limited to 'gn3/db_utils.py')
-rw-r--r-- | gn3/db_utils.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gn3/db_utils.py b/gn3/db_utils.py index 4fd3666..23a570b 100644 --- a/gn3/db_utils.py +++ b/gn3/db_utils.py @@ -27,7 +27,9 @@ def database_connector() -> mdb.Connection: # pylint: disable=missing-class-docstring, missing-function-docstring, too-few-public-methods class Connection(Protocol): + """Type Annotation for MySQLdb's connection object""" def cursor(self) -> Any: + """A cursor in which queries may be performed""" ... |