Skip to content

Commit a868756

Browse files
[WIP] added type annotations.
1 parent 237cf46 commit a868756

File tree

139 files changed

+545
-790
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

139 files changed

+545
-790
lines changed

.travis.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,22 @@ matrix:
1010
- python: 3.6
1111
- python: 3.5
1212
- python: 3.4
13-
- python: 2.7
14-
- python: 2.6
1513
- python: nightly
16-
- python: pypy
1714
- python: pypy3
1815

1916
install:
2017
- pip install . pytest coverage codecov flake8
21-
- if [ "$TRAVIS_PYTHON_VERSION" != "2.6" ]; then pip install isort; fi
18+
- pip install isort
2219
- pip list
2320

2421
script:
2522
- echo "$TRAVIS_PYTHON_VERSION"
26-
- if [ "$TRAVIS_PYTHON_VERSION" != "2.6" ]; then flake8 prompt_toolkit; fi
23+
- flake8 prompt_toolkit
2724
- coverage run -m pytest
2825

2926
# Check wheather the imports were sorted correctly.
3027
# When this fails, please run ./tools/sort-imports.sh
31-
- if [ "$TRAVIS_PYTHON_VERSION" != "2.6" ]; then isort -c -m 3 -tc -rc prompt_toolkit; fi
28+
- isort -c -m 3 -tc -rc prompt_toolkit
3229

3330
after_success:
3431
- codecov

prompt_toolkit/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
Probably, to get started, you might also want to have a look at
1414
`prompt_toolkit.shortcuts.prompt`.
1515
"""
16-
from __future__ import unicode_literals
17-
1816
from .application import Application
1917
from .formatted_text import ANSI, HTML
2018
from .shortcuts import PromptSession, print_formatted_text, prompt

prompt_toolkit/application/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from __future__ import unicode_literals
2-
31
from .application import Application
42
from .current import NoRunningApplicationError, get_app, set_app
53
from .dummy import DummyApplication

0 commit comments

Comments
 (0)