I would keep the explicit key= assignment since it's more than just a single literal but otherwise the second version is more idiomatic and readable.