Skip to content

Commit 1e4907e

Browse files
committed
mypy
1 parent e0a8ad4 commit 1e4907e

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,8 @@ optional-dependencies = {dev = {file = ["requirements-dev.txt"]}}
3333
[tool.black]
3434
line-length = 88
3535
fast = true
36+
37+
[tool.mypy]
38+
[[tool.mypy.overrides]]
39+
module = "mx.*"
40+
ignore_missing_imports = true

requirements-dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Requirements for tests
22
pytest
33
ml_dtypes
4+
microxcaling
45

56
# Requirements for development
67
pre-commit

test/test_microxcaling.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,12 @@
3434
],
3535
ids=str,
3636
)
37-
def test_mx(mx_round, gf_round, mx_etype, gf_etype):
37+
def test_mx(
38+
mx_round: str,
39+
gf_round: RoundMode,
40+
mx_etype: ElemFormat,
41+
gf_etype: FormatInfo,
42+
) -> None:
3843
A = torch.arange(32) / 2 - 5
3944

4045
mx_specs = dict(

0 commit comments

Comments
 (0)