def METHOD_NAME(conn):
    from psycopg.types.shapely import register_shapely
    with pytest.raises(TypeError, match="postgis.*extension"):
        register_shapely(None, conn)  # type: ignore[arg-type]