Skip to content

Commit

Permalink
Update typings for Server 2.10.1 and mypy 1.7 #425 (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 authored Nov 16, 2023
1 parent 554cfb3 commit a368582
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ repos:
- id: mdformat

- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v3.0.3"
rev: "v3.1.0"
hooks:
- id: prettier
types_or: [yaml, html, json]
Expand All @@ -56,14 +56,14 @@ repos:
- id: rst-inline-touching-normal

- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.6.1"
rev: "v1.7.0"
hooks:
- id: mypy
files: "^jupyter_server_terminals"
stages: [manual]
args: ["--install-types", "--non-interactive"]
additional_dependencies:
["traitlets>=5.13", "jupyter_server>=2.10", "terminado>=0.18"]
["traitlets>=5.13", "jupyter_server>=2.10.1", "terminado>=0.18"]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.5
Expand Down
2 changes: 1 addition & 1 deletion jupyter_server_terminals/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ class TerminalsMixin(ExtensionHandlerMixin):

@property
def terminal_manager(self) -> TerminalManager:
return self.settings["terminal_manager"] # type:ignore[attr-defined,no-any-return]
return self.settings["terminal_manager"] # type:ignore[no-any-return]

0 comments on commit a368582

Please sign in to comment.