Pyright is a wonderful tool but in version 1.1.18 it incorrectly flags statements like:
a = 1 + 1j
as syntax errors. The exact error seems to vary but a common example is:
"Statements must be separated by newlines or semicolons"
Thanks for the bug report. This will be fixed in the next version.
This support is now included in 1.1.19, which I just published.