Fix psycopg2.sql.SQL.join annotation
#10716
Merged
psycopg2.sql.SQL.join annotation
#10716