Skip to content

Commit

Permalink
style: Fix type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
nvictus committed May 27, 2024
1 parent 84844d5 commit a0d4809
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cooler/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import re
from collections import OrderedDict, defaultdict
from contextlib import contextmanager
from typing import IO, Any, ContextManager, Iterable, Iterator
from typing import IO, Any, Generator, Iterable, Iterator

import h5py
import numpy as np
Expand Down Expand Up @@ -519,7 +519,7 @@ def open_hdf5(
mode: str = "r",
*args,
**kwargs
) -> ContextManager[h5py.Group]:
) -> Generator[h5py.Group, None, None]:
"""
Context manager like ``h5py.File`` but accepts already open HDF5 file
handles which do not get closed on teardown.
Expand Down

0 comments on commit a0d4809

Please sign in to comment.