mypy: zulip: Annotate integrations/svn/zulip_svn_config.py.
MODIFY
tools/run-mypy
tools/run-mypy
@@ -20,7 +20,6 @@ sys.path.append(os.path.dirname(TOOLS_DIR))
exclude = """
zulip/integrations/perforce/git_p4.py
-zulip/integrations/svn/zulip_svn_config.py
zulip/integrations/zephyr/process_ccache
zulip/tests/__init__.py
zulip/tests/test_default_arguments.py

MODIFY
zulip/integrations/svn/zulip_svn_config.py
zulip/integrations/svn/zulip_svn_config.py
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
+from typing import Dict, Optional, Text
# Change these values to configure authentication for the plugin
ZULIP_USER = "svn-bot@example.com"
@@ -40,6 +41,7 @@ ZULIP_API_KEY = "0123456789abcdef0123456789abcdef"
# * stream "commits"
# * topic "branch_name"
def commit_notice_destination(path, commit):
+ # type: (Text, Text) -> Optional[Dict[Text, Text]]
repo = path.split('/')[-1]
if repo not in ["evil-master-plan", "my-super-secret-repository"]:
return dict(stream = "commits",

mypy: zulip: Annotate integrations/svn/zulip_svn_config.py.