async def METHOD_NAME() -> None:
    """Type-check connection.cursor(..., row_factory=<MyRowFactory>) case."""
    conn = await AsyncConnection.connect()
    cur1: AsyncCursor[Any]
    cur1 = conn.cursor()
    r1: Optional[Any]
    r1 = await cur1.fetchone()
    r1 is not None
    cur2: AsyncCursor[int]
    r2: Optional[int]
    async with conn.cursor(row_factory=int_row_factory) as cur2:
        await cur2.execute("select 1")
        r2 = await cur2.fetchone()
        r2 and r2 > 0
    cur3: AsyncServerCursor[Person]
    persons: Sequence[Person]
    async with conn.cursor(name="s", row_factory=Person.row_factory) as cur3:
        await cur3.execute("select * from persons where name like 'al%'")
        persons = await cur3.fetchall()
        persons[0].address