From 49053830b6d01c0baa9156abddfc7bf693fa82a4 Mon Sep 17 00:00:00 2001 From: Alex Parsons Date: Wed, 20 Mar 2024 19:52:47 +0000 Subject: [PATCH] fixup! Adds division_io.py --- conf/packages | 3 ++- requirements.txt | 8 ++++---- scripts/division_io.py | 4 ++-- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/conf/packages b/conf/packages index d60a091546..d719fa040a 100644 --- a/conf/packages +++ b/conf/packages @@ -27,4 +27,5 @@ python3-mysqldb snarf python3-dev libmariadb-dev -python3-venv \ No newline at end of file +python3-venv +pkg-config \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index c934eae5fb..dd00960d9b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -rich-click==1.7.3 -pandas==1.3.5 -pyarrow==12.0.1 -mysqlclient==2.1.1 \ No newline at end of file +rich-click==1.7.4 +pandas==2.2.1 +pyarrow==15.0.2 +mysqlclient==2.2.4 \ No newline at end of file diff --git a/scripts/division_io.py b/scripts/division_io.py index c4fd6c2f37..3e6323aee4 100644 --- a/scripts/division_io.py +++ b/scripts/division_io.py @@ -10,7 +10,7 @@ import re from enum import Enum from pathlib import Path -from typing import Dict, cast +from typing import cast from warnings import filterwarnings import MySQLdb @@ -48,7 +48,7 @@ def cli(): pass -def fast_config(config_path: Path) -> Dict[str, str]: +def fast_config(config_path: Path) -> dict[str, str]: """ There's a more comprehensive config parser in commonlib/pylib/mysociety/config.py But this is all we need for this function.