drawMatches, bad argument error, python

When I call the function drawMatches I get this error:

cv2.error: OpenCV(4.8.0-pre) :-1: error: (-5:Bad argument) in function ‘drawMatches’

Overload resolution failed:

  • Can’t parse ‘matches1to2’. Sequence item with index 0 has a wrong type
  • Can’t parse ‘matches1to2’. Sequence item with index 0 has a wrong type
  • Can’t parse ‘matches1to2’. Sequence item with index 0 has a wrong type
  • Can’t parse ‘matches1to2’. Sequence item with index 0 has a wrong type

show code please (MRE)