From c713d93db8fce6f8dc4eb7d8ad48d7b220bb19d6 Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Fri, 22 Jan 2021 18:39:52 +0100 Subject: [PATCH] Mypy version bumped to 0.800 --- psycopg3/psycopg3/wrappers/numeric.py | 10 +++++----- psycopg3/setup.py | 2 +- tox.ini | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/psycopg3/psycopg3/wrappers/numeric.py b/psycopg3/psycopg3/wrappers/numeric.py index a60106b8b..74a7e9361 100644 --- a/psycopg3/psycopg3/wrappers/numeric.py +++ b/psycopg3/psycopg3/wrappers/numeric.py @@ -7,24 +7,24 @@ Wrappers to force numbers to be cast as specific PostgreSQL types class Int2(int): def __new__(cls, arg: int) -> "Int2": - return super().__new__(cls, arg) # type: ignore + return super().__new__(cls, arg) class Int4(int): def __new__(cls, arg: int) -> "Int4": - return super().__new__(cls, arg) # type: ignore + return super().__new__(cls, arg) class Int8(int): def __new__(cls, arg: int) -> "Int8": - return super().__new__(cls, arg) # type: ignore + return super().__new__(cls, arg) class IntNumeric(int): def __new__(cls, arg: int) -> "IntNumeric": - return super().__new__(cls, arg) # type: ignore + return super().__new__(cls, arg) class Oid(int): def __new__(cls, arg: int) -> "Oid": - return super().__new__(cls, arg) # type: ignore + return super().__new__(cls, arg) diff --git a/psycopg3/setup.py b/psycopg3/setup.py index 7ec2da35d..f71ee56ab 100644 --- a/psycopg3/setup.py +++ b/psycopg3/setup.py @@ -39,7 +39,7 @@ extras_require = { "dev": [ "black", "flake8 >= 3.8, < 3.9", - "mypy >= 0.790", + "mypy >= 0.800", ], } diff --git a/tox.ini b/tox.ini index a44bff9a4..76cdb0f66 100644 --- a/tox.ini +++ b/tox.ini @@ -14,7 +14,7 @@ skip_install = true [testenv:mypy] commands = mypy -deps = mypy >= 0.790 +deps = mypy >= 0.800 changedir = psycopg3 skip_install = true -- 2.47.3