I have started migrating some Python code from using psycopg2 to pscopyg3. It appears there is a change in how null values are accepted as query parameters in the newer version. Based on a read of the documentation for this topic in psycopg3 there isn't any mention of how to deal with null values.
Below is a simplified example of my use case that worked fine in psycopg2
cursor.execute("SELECT * FROM mock_table WHERE var_1 is %s", [None])
And the below error is produced now in psycopg3
psycopg.errors.SyntaxError: syntax error at or near "$1" LINE 1:
SELECT * FROM mock_table WHERE var_1 is $1