To ignore specific pyright rules in-line, use the a comma-delimited list of rules to ignore. Meanwhile, adding the following comment to the top of your module will disable checking of the listed rules for the whole file.
xxxxxxxxxx
# pyright: reportUndefinedVariable=false, reportGeneralTypeIssues=false
foo: int = "123" # pyright: ignore [reportPrivateUsage, reportGeneralTypeIssues]