]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
Fixed typing typo
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sat, 4 Apr 2020 09:19:21 +0000 (22:19 +1300)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sat, 4 Apr 2020 09:21:01 +0000 (22:21 +1300)
psycopg3/types/array.py

index df7ec02cdf4637fc873bf0e5dd2e040a59cc9530..39f33a1276c7dbe54ac7200e1127b8f246677cb8 100644 (file)
@@ -92,8 +92,8 @@ class ArrayCasterBase(TypeCaster):
 
     def __init__(self, oid: int, context: AdaptContext = None):
         super().__init__(oid, context)
-        self.caster_func = TypeCasterFunc  # type: ignore
 
+        self.caster_func: TypeCasterFunc
         if isinstance(self.base_caster, type):
             self.caster_func = self.base_caster(oid, context).cast
         else: