Skip to content

Commit

Permalink
Cleanup and type annotate completer.py
Browse files Browse the repository at this point in the history
Remove some of the unnecessary u'' prefixes, replace some of the return
tuples with `namedtuples` to make the code a bit more clearer and
flexible.
  • Loading branch information
Carreau committed May 10, 2020
1 parent 7994e30 commit ad14ee3
Show file tree
Hide file tree
Showing 5 changed files with 136 additions and 80 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ install:
- pip install trio curio --upgrade --upgrade-strategy eager
- pip install pytest 'matplotlib !=3.2.0' mypy
- pip install codecov check-manifest --upgrade
- pip install mypy

script:
- check-manifest
Expand All @@ -50,7 +51,8 @@ script:
fi
- cd /tmp && iptest --coverage xml && cd -
- pytest IPython
- mypy --ignore-missing-imports -m IPython.terminal.ptutils
- mypy IPython/terminal/ptutils.py
- mypy IPython/core/c*.py
# On the latest Python (on Linux) only, make sure that the docs build.
- |
if [[ "$TRAVIS_PYTHON_VERSION" == "3.7" ]] && [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
Expand Down
Loading

0 comments on commit ad14ee3

Please sign in to comment.