Skip to content

Commit 202e046

Browse files
authored
Merge pull request #83 from davidbrochart/type
Type checking
2 parents d8e3ab0 + 5b93e2d commit 202e046

File tree

11 files changed

+277
-110
lines changed

11 files changed

+277
-110
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ matrix:
1010
env: TOXENV=py38
1111
- python: 3.8
1212
env: TOXENV=flake8
13+
- python: 3.8
14+
env: TOXENV=mypy
1315
- python: 3.8
1416
env: TOXENV=dist
1517
- python: 3.8

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ include requirements-dev.txt
55
include *.md
66
include .bumpversion.cfg
77
include tox.ini
8+
include mypy.ini
89
include pyproject.toml
910

1011
# Code and test files

mypy.ini

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Global options:
2+
3+
[mypy]
4+
python_version = 3.6
5+
6+
# Per-module options:
7+
8+
[mypy-ipython_genutils.*]
9+
ignore_missing_imports = True
10+
11+
[mypy-nbformat.*]
12+
ignore_missing_imports = True
13+
14+
[mypy-nest_asyncio.*]
15+
ignore_missing_imports = True
16+
17+
[mypy-async_generator.*]
18+
ignore_missing_imports = True
19+
20+
[mypy-traitlets.*]
21+
ignore_missing_imports = True
22+
23+
[mypy-jupyter_client.*]
24+
ignore_missing_imports = True

nbclient/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from ._version import version as __version__ # noqa: F401
55

66

7-
def _cleanup():
7+
def _cleanup() -> None:
88
pass
99

1010

0 commit comments

Comments
 (0)