From a974eea3d3c81af8ac950b34b3eabf037fa31123 Mon Sep 17 00:00:00 2001 From: phil Date: Mon, 25 Dec 2023 15:42:34 +0530 Subject: [PATCH] Add python typings stubs for psycopg2 --- pdm.lock | 12 +++++++++++- pyproject.toml | 3 ++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/pdm.lock b/pdm.lock index 264b0a9..084fa0d 100644 --- a/pdm.lock +++ b/pdm.lock @@ -5,7 +5,7 @@ groups = ["default", "dev", "mqtt"] strategy = ["cross_platform"] lock_version = "4.4.1" -content_hash = "sha256:24fb04657040cfa1414a685a57da434ad7ab49eb641354d138a85df3d6e642dd" +content_hash = "sha256:e0be2ab66a21fc5961c11251fec8a3e6e0e41d1945c5c9630734ebb0be3f6dbb" [[package]] name = "aiomqtt" @@ -1184,6 +1184,16 @@ files = [ {file = "traitlets-5.14.0.tar.gz", hash = "sha256:fcdaa8ac49c04dfa0ed3ee3384ef6dfdb5d6f3741502be247279407679296772"}, ] +[[package]] +name = "types-psycopg2" +version = "2.9.21.20" +requires_python = ">=3.7" +summary = "Typing stubs for psycopg2" +files = [ + {file = "types-psycopg2-2.9.21.20.tar.gz", hash = "sha256:73baea689575bf5bb1b915b783fb0524044c6242928aeef1ae5a9e32f0780d3d"}, + {file = "types_psycopg2-2.9.21.20-py3-none-any.whl", hash = "sha256:5b1e2e1d9478f8a298ea7038f8ea988e0ccc1f0af39f84636d57ef0da6f29e95"}, +] + [[package]] name = "types-pytz" version = "2023.3.1.1" diff --git a/pyproject.toml b/pyproject.toml index 0440f08..8e47edf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -27,7 +27,7 @@ dependencies = [ "uvicorn>=0.23.2", "websockets>=12.0", ] -requires-python = ">=3.11" +requires-python = ">=3.11,<4" readme = "README.md" license = {text = "GPLv3"} @@ -50,4 +50,5 @@ dev = [ "ipdb>=0.13.13", "pandas-stubs>=2.1.4.231218", "pretty-errors>=1.2.25", + "types-psycopg2>=2.9.21.20", ]