Skip to content

Commit f2123c3

Browse files
authored
Update typings for mypy 1.6 (#381)
1 parent cb44f6f commit f2123c3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

nbformat/json_compat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import os
99

10-
import fastjsonschema # type:ignore[import]
10+
import fastjsonschema # type:ignore[import-untyped]
1111
import jsonschema
1212
from fastjsonschema import JsonSchemaException as _JsonSchemaException
1313
from jsonschema import Draft4Validator as _JsonSchemaValidator

nbformat/sign.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def convert_datetime(val):
3030
sqlite3.register_converter("datetime", convert_datetime)
3131
except ImportError:
3232
try:
33-
from pysqlite2 import dbapi2 as sqlite3 # type:ignore[no-redef, import]
33+
from pysqlite2 import dbapi2 as sqlite3 # type:ignore[no-redef, import-not-found]
3434
except ImportError:
3535
sqlite3 = None # type:ignore[assignment]
3636

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ nowarn = "test -W default {args}"
8585

8686
[tool.hatch.envs.typing]
8787
features = ["test"]
88-
dependencies = ["mypy>=1.5.1"]
88+
dependencies = ["mypy~=1.6", "jupyter_core>=5.4", "traitlets>=5.11.1"]
8989
[tool.hatch.envs.typing.scripts]
9090
test = "mypy --install-types --non-interactive {args}"
9191

0 commit comments

Comments
 (0)