Skip to content

Commit

Permalink
Update typings for mypy 1.6 (#381)
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 committed Oct 15, 2023
1 parent cb44f6f commit f2123c3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nbformat/json_compat.py
Expand Up @@ -7,7 +7,7 @@

import os

import fastjsonschema # type:ignore[import]
import fastjsonschema # type:ignore[import-untyped]
import jsonschema
from fastjsonschema import JsonSchemaException as _JsonSchemaException
from jsonschema import Draft4Validator as _JsonSchemaValidator
Expand Down
2 changes: 1 addition & 1 deletion nbformat/sign.py
Expand Up @@ -30,7 +30,7 @@ def convert_datetime(val):
sqlite3.register_converter("datetime", convert_datetime)
except ImportError:
try:
from pysqlite2 import dbapi2 as sqlite3 # type:ignore[no-redef, import]
from pysqlite2 import dbapi2 as sqlite3 # type:ignore[no-redef, import-not-found]
except ImportError:
sqlite3 = None # type:ignore[assignment]

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Expand Up @@ -85,7 +85,7 @@ nowarn = "test -W default {args}"

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

Expand Down

0 comments on commit f2123c3

Please sign in to comment.