Fix issue #1318: Type (typehint) error for db.relationship
#1320
+4
−6
db.relationship
#1320