From: Daniele Varrazzo Date: Mon, 14 Jun 2021 09:46:19 +0000 (+0100) Subject: Add missing return type annotation X-Git-Tag: 3.0.dev0~27 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b4488acaa0b35f08dad0b03a7768e196b2324c53;p=thirdparty%2Fpsycopg.git Add missing return type annotation --- diff --git a/psycopg3/psycopg3/dbapi20.py b/psycopg3/psycopg3/dbapi20.py index cc62664f8..5450c7780 100644 --- a/psycopg3/psycopg3/dbapi20.py +++ b/psycopg3/psycopg3/dbapi20.py @@ -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)"