Read about our upcoming Code of Conduct on this issue

Commit b931eef8 authored by Matt Harbison's avatar Matt Harbison
Browse files

Disable a couple of pytype errors related to conditionalized compatability

At this point, there are no more things that pytype is flagging, so it will need
some annotations on core Mercurial code.
parent dfd2957e16b3
......@@ -298,7 +298,7 @@ def make_passwordmgr(ui):
if hasattr(ui, 'httppasswordmgrdb'):
return passwordmgr(ui, ui.httppasswordmgrdb)
else:
return passwordmgr(ui)
return passwordmgr(ui) # pytype: disable=missing-parameter
############################################################
# HTTP password management
......@@ -682,7 +682,7 @@ def keyring_supported_smtp(ui, username):
try:
from mercurial.utils.stringutil import parsebool
except ImportError:
from mercurial.utils import parsebool
from mercurial.utils import parsebool # pytype: disable=import-error
local_hostname = ui.config('smtp', 'local_hostname')
tls = ui.config('smtp', 'tls', 'none')
......@@ -697,7 +697,7 @@ def keyring_supported_smtp(ui, username):
if getattr(sslutil, 'sslkwargs', None) is None:
sslkwargs = None
elif starttls or smtps:
sslkwargs = sslutil.sslkwargs(ui, mailhost)
sslkwargs = sslutil.sslkwargs(ui, mailhost) # pytype: disable=module-attr
else:
sslkwargs = {}
if smtps:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment