]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
Dropped unneeded assignment
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Wed, 30 Dec 2020 21:22:27 +0000 (22:22 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 8 Jan 2021 01:26:53 +0000 (02:26 +0100)
psycopg3/psycopg3/types/numeric.py

index 91ba9f066a32838289257764c1b0e8474486a0c2..439f2be10c8752994f9597fedfea952b6e02d7c5 100644 (file)
@@ -34,26 +34,22 @@ _unpack_float8 = cast(_UnpackFloat, struct.Struct("!d").unpack)
 
 class Int2(int):
     def __new__(cls, arg: int) -> "Int2":
-        rv: Int2 = super().__new__(cls, arg)  # type: ignore[call-arg]
-        return rv
+        return super().__new__(cls, arg)  # type: ignore
 
 
 class Int4(int):
     def __new__(cls, arg: int) -> "Int4":
-        rv: Int4 = super().__new__(cls, arg)  # type: ignore[call-arg]
-        return rv
+        return super().__new__(cls, arg)  # type: ignore
 
 
 class Int8(int):
     def __new__(cls, arg: int) -> "Int8":
-        rv: Int8 = super().__new__(cls, arg)  # type: ignore[call-arg]
-        return rv
+        return super().__new__(cls, arg)  # type: ignore
 
 
 class Oid(int):
     def __new__(cls, arg: int) -> "Oid":
-        rv: Oid = super().__new__(cls, arg)  # type: ignore[call-arg]
-        return rv
+        return super().__new__(cls, arg)  # type: ignore
 
 
 class NumberDumper(Dumper):