Skip to content

Commit

Permalink
Merge pull request #83 from davidbrochart/type
Browse files Browse the repository at this point in the history
Type checking
  • Loading branch information
MSeal authored Jun 22, 2020
2 parents d8e3ab0 + 5b93e2d commit 202e046
Show file tree
Hide file tree
Showing 11 changed files with 277 additions and 110 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ matrix:
env: TOXENV=py38
- python: 3.8
env: TOXENV=flake8
- python: 3.8
env: TOXENV=mypy
- python: 3.8
env: TOXENV=dist
- python: 3.8
Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ include requirements-dev.txt
include *.md
include .bumpversion.cfg
include tox.ini
include mypy.ini
include pyproject.toml

# Code and test files
Expand Down
24 changes: 24 additions & 0 deletions mypy.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Global options:

[mypy]
python_version = 3.6

# Per-module options:

[mypy-ipython_genutils.*]
ignore_missing_imports = True

[mypy-nbformat.*]
ignore_missing_imports = True

[mypy-nest_asyncio.*]
ignore_missing_imports = True

[mypy-async_generator.*]
ignore_missing_imports = True

[mypy-traitlets.*]
ignore_missing_imports = True

[mypy-jupyter_client.*]
ignore_missing_imports = True
2 changes: 1 addition & 1 deletion nbclient/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from ._version import version as __version__ # noqa: F401


def _cleanup():
def _cleanup() -> None:
pass


Expand Down
Loading

0 comments on commit 202e046

Please sign in to comment.