File tree 2 files changed +10
-0
lines changed 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -144,6 +144,9 @@ ignore_missing_imports = True
144
144
ignore_missing_imports = True
145
145
[mypy-sgkit.*]
146
146
allow_redefinition = True
147
+ [mypy-sgkit.io.bgen.*]
148
+ # avoid warning on unused ignore for Python 3.8, but not unused for 3.7
149
+ warn_unused_ignores = False
147
150
[mypy-sgkit.*.tests.*]
148
151
disallow_untyped_defs = False
149
152
disallow_untyped_decorators = False
Original file line number Diff line number Diff line change 31
31
from sgkit .io .utils import dataframe_to_dict , encode_contigs
32
32
from sgkit .typing import ArrayLike , PathType
33
33
34
+ try :
35
+ # needed to avoid Sphinx forward reference error for DTypeLike
36
+ # try block is needed since SupportsIndex is in Python 3.7
37
+ from typing import SupportsIndex # type: ignore # noqa: F401
38
+ except ImportError : # pragma: no cover
39
+ pass
40
+
34
41
logger = logging .getLogger (__name__ )
35
42
36
43
GT_DATA_VARS = [
You can’t perform that action at this time.
0 commit comments