Query multiple UID with DQL in Python

@billybobthorton
Took a quick look at the query and it works fine on my system. I tested the below query on Pydgraph 20.03:

def query(client):
    query = """query q($id : string){
    q2(func: uid($id) ){
        name
        uid
    }
}"""
    variables = {"$id": "[1, 2]"}
    try:
        response = client.txn().query(query=query, variables=variables)
        print(json.loads(response.json))
        return json.loads(response.json)
    except Exception as e:
        print(e)
    finally:
        client.txn().discard()

Could you share pydgraph version and the error message you get?