From 9348a22a6a96142fec0aa75505dfd15710a7f109 Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Mon, 21 Dec 2020 00:48:43 +0100 Subject: [PATCH] Use a strict PGconn type on Escaping.__init__ definition definition --- psycopg3_c/psycopg3_c/pq/escaping.pyx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/psycopg3_c/psycopg3_c/pq/escaping.pyx b/psycopg3_c/psycopg3_c/pq/escaping.pyx index 210b86728..cec866337 100644 --- a/psycopg3_c/psycopg3_c/pq/escaping.pyx +++ b/psycopg3_c/psycopg3_c/pq/escaping.pyx @@ -4,11 +4,9 @@ psycopg3_c.pq_cython.Escaping object implementation. # Copyright (C) 2020 The Psycopg Team -from psycopg3_c.pq_cython cimport PGconn - cdef class Escaping: - def __init__(self, conn: Optional[PGconn] = None): + def __init__(self, PGconn conn = None): self.conn = conn def escape_literal(self, data: "Buffer") -> memoryview: -- 2.47.2