]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
Add missing return type annotation
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Mon, 14 Jun 2021 09:46:19 +0000 (10:46 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Mon, 14 Jun 2021 09:46:19 +0000 (10:46 +0100)
psycopg3/psycopg3/dbapi20.py

index cc62664f888f9d3c75bec41b74e431a571b750e3..5450c7780c2eb92e0071a35c8925a4590646c221 100644 (file)
@@ -51,7 +51,7 @@ class Binary:
     def __init__(self, obj: Any):
         self.obj = obj
 
-    def __repr__(self):
+    def __repr__(self) -> str:
         sobj = repr(self.obj)
         if len(sobj) > 40:
             sobj = f"{sobj[:35]} ... ({len(sobj)} byteschars)"