Skip to content

Commit 0add889

Browse files
committed
build: scope mypy workaround to bokeh imports
- remove file-level mypy disable pragmas added for bokeh 3.7\n- configure mypy override for bokeh modules in pyproject\n- keep type-checking active for project code while skipping bokeh stubs
1 parent 4eb31db commit 0add889

9 files changed

Lines changed: 7 additions & 8 deletions

File tree

malariagen_data/anoph/cnv_data.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# mypy: disable-error-code="call-arg,arg-type,attr-defined,list-item"
21
from typing import Dict, List, Optional, Tuple, Union
32

43
import dask.array as da

malariagen_data/anoph/fst.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# mypy: disable-error-code="call-arg,arg-type,attr-defined,list-item"
21
from typing import Tuple, Optional
32

43
import numpy as np

malariagen_data/anoph/g123.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# mypy: disable-error-code="call-arg,arg-type,attr-defined,list-item"
21
from collections import Counter
32
from typing import Optional, Tuple, Dict, Mapping
43

malariagen_data/anoph/genome_features.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# mypy: disable-error-code="call-arg,arg-type,attr-defined,list-item"
21
from typing import Dict, Optional, Tuple, Mapping
32

43
import bokeh.models

malariagen_data/anoph/h12.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# mypy: disable-error-code="call-arg,arg-type,attr-defined,list-item"
21
from typing import Optional, Tuple, Dict, Mapping
32

43
import allel # type: ignore

malariagen_data/anoph/h1x.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# mypy: disable-error-code="call-arg,arg-type,attr-defined,list-item"
21
from typing import Optional, Tuple
32

43
import allel # type: ignore

malariagen_data/anoph/snp_data.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# mypy: disable-error-code="call-arg,arg-type,attr-defined,list-item"
21
import warnings
32
from functools import lru_cache
43
from typing import Any, Dict, List, Optional, Tuple, Union

malariagen_data/anopheles.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# mypy: disable-error-code="call-arg,arg-type,attr-defined,list-item"
21
from abc import abstractmethod
32
from typing import Any, Dict, Mapping, Optional, Tuple, Sequence
43

pyproject.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,3 +107,10 @@ line-length = 88
107107

108108
[tool.ruff.lint]
109109
extend-select = []
110+
111+
[tool.mypy]
112+
ignore_missing_imports = true
113+
114+
[[tool.mypy.overrides]]
115+
module = ["bokeh", "bokeh.*"]
116+
follow_imports = "skip"

0 commit comments

Comments
 (0)