From: Daniele Varrazzo Date: Fri, 22 Jan 2021 17:39:52 +0000 (+0100) Subject: Mypy version bumped to 0.800 X-Git-Tag: 3.0.dev0~135 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c713d93db8fce6f8dc4eb7d8ad48d7b220bb19d6;p=thirdparty%2Fpsycopg.git Mypy version bumped to 0.800 --- 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