

def _connect(self, database, encoding=None, **kwargs):
    if (not psycopg2):
        raise ImproperlyConfigured('psycopg2 must be installed.')
    conn = psycopg2.connect(database=database, **kwargs)
    if self.register_unicode:
        pg_extensions.register_type(pg_extensions.UNICODE, kwargs)
        pg_extensions.register_type(pg_extensions.UNICODEARRAY, conn)
    if encoding:
        conn.set_client_encoding(encoding)
    return conn

dataset/ETHPy150Open coleifer/peewee/peewee.py PostgresqlDatabase._connect/VarMisuse@63/82 `conn`->`kwargs`