diff --git a/gajim/common/modules/vcard4.py b/gajim/common/modules/vcard4.py
index d25e1f6e2f85cd4fe7931074cf908c17e1c94456..ff40822bd0d6251db3b427e568118aeaddba0b06 100644
--- a/gajim/common/modules/vcard4.py
+++ b/gajim/common/modules/vcard4.py
@@ -14,6 +14,9 @@
 
 # XEP-0292: vCard4 Over XMPP
 
+from __future__ import annotations
+
+from gajim.common import types
 from gajim.common.modules.base import BaseModule
 
 
@@ -25,5 +28,5 @@ class VCard4(BaseModule):
         'set_vcard',
     ]
 
-    def __init__(self, con):
+    def __init__(self, con: types.Client) -> None:
         BaseModule.__init__(self, con)
diff --git a/pyrightconfig.json b/pyrightconfig.json
index cdd8838816e0621e58c33ca1157bedadeb527085..be50a5f912969cd9d246e590a3e14cb7b7774730 100644
--- a/pyrightconfig.json
+++ b/pyrightconfig.json
@@ -33,6 +33,7 @@
         "gajim/common/modules/pep.py",
         "gajim/common/modules/register.py",
         "gajim/common/modules/vcard_temp.py",
+        "gajim/common/modules/vcard4.py",
         "gajim/common/passwords.py",
         "gajim/common/regex.py",
         "gajim/common/setting_values.py",