Skip to content

Commit

Permalink
Fix use of nullcontext
Browse files Browse the repository at this point in the history
  • Loading branch information
alexamici committed Apr 3, 2024
1 parent 94b05fc commit 23ad8ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xarray_ecmwf/client_polytope.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
@attrs.define
class PolytopeRequestClient:
client_kwargs: dict[str, Any] = {}
retrieve_lock = contextlib.nullcontext
download_lock = contextlib.nullcontext
retrieve_lock = contextlib.nullcontext()
download_lock = contextlib.nullcontext()

def submit_and_wait_on_result(self, request: dict[str, Any]) -> Any:
path = hashlib.md5(str(request).encode("utf-8")).hexdigest() + ".grib"
Expand Down

0 comments on commit 23ad8ee

Please sign in to comment.