mypy: Added Dict, List and Set imports.
Fixed mypy errors associated with the upgrade.
This commit is contained in:
parent
94871fea76
commit
58f5e729b6
9 changed files with 9 additions and 7 deletions
|
@ -25,6 +25,7 @@
|
|||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
from typing import Dict
|
||||
|
||||
sys.path.insert(0, os.path.dirname(__file__))
|
||||
import zulip_openshift_config as config
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
# THE SOFTWARE.
|
||||
|
||||
# https://github.com/python/mypy/issues/1141
|
||||
from typing import Text
|
||||
from typing import Dict, Text
|
||||
|
||||
# Change these values to configure authentication for the plugin
|
||||
ZULIP_USER = 'openshift-bot@example.com'
|
||||
|
|
|
@ -43,7 +43,7 @@ import zulip_trac_config as config
|
|||
VERSION = "0.9"
|
||||
|
||||
if False:
|
||||
from typing import Any
|
||||
from typing import Any, Dict
|
||||
|
||||
if config.ZULIP_API_PATH is not None:
|
||||
sys.path.append(config.ZULIP_API_PATH)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue