From 893532d438ad9b41bc3de64cb77ca7d37f6f9b52 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 5 Feb 2024 16:42:46 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- osm_rawdata/postgres.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/osm_rawdata/postgres.py b/osm_rawdata/postgres.py index 1872a6e..9917cf8 100755 --- a/osm_rawdata/postgres.py +++ b/osm_rawdata/postgres.py @@ -35,7 +35,7 @@ import requests from geojson import Feature, FeatureCollection, Polygon from shapely import wkt -from shapely.geometry import Polygon, shape +from shapely.geometry import shape # Find the other files for this project import osm_rawdata as rw @@ -156,9 +156,7 @@ def __init__( log.error(f"Couldn't connect to database: {e}") def __del__(self): - """ - Close any open connections to Postgres. - """ + """Close any open connections to Postgres.""" self.dbshell.close() def createJson(