Skip to content

Commit

Permalink
requirements/keys/helper/model: Move from mypy- to typing-extensions.
Browse files Browse the repository at this point in the history
TypedDict requires an external module until Python 3.8;
typing-extensions is a newer equivalent of mypy-extensions that contains
types likely to be incorporated into typing in future version of Python.
  • Loading branch information
neiljp committed Aug 10, 2020
1 parent 6176ae9 commit c470d25
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ zulip = ">=0.7.0"
urwid-readline = ">=0.11"
beautifulsoup4 = ">=4.9.0"
lxml = ">=4.5.2"
mypy_extensions = ">=0.4"
typing_extensions = ">=3.7"

[dev-packages]
pytest = "==5.3.5"
Expand Down
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
urwid~=2.1.1
zulip>=0.7.0
typing_extensions>=3.7

pytest==5.3.5
pytest-cov==2.5.1
pytest-mock==1.7.1
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,6 @@ def long_description():
'urwid_readline>=0.11',
'beautifulsoup4>=4.9.0',
'lxml>=4.5.2',
'mypy_extensions>=0.4',
'typing_extensions>=3.7',
],
)
2 changes: 1 addition & 1 deletion zulipterminal/config/keys.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from collections import OrderedDict
from typing import List, Set

from mypy_extensions import TypedDict
from typing_extensions import TypedDict


KeyBinding = TypedDict('KeyBinding', {
Expand Down
2 changes: 1 addition & 1 deletion zulipterminal/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
)

import lxml.html
from mypy_extensions import TypedDict
from typing_extensions import TypedDict


MACOS = platform.system() == "Darwin"
Expand Down
2 changes: 1 addition & 1 deletion zulipterminal/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from urllib.parse import urlparse

import zulip
from mypy_extensions import TypedDict
from typing_extensions import TypedDict

from zulipterminal.config.keys import keys_for_command
from zulipterminal.helper import (
Expand Down

0 comments on commit c470d25

Please sign in to comment.