diff --git a/jaraco/home/report-spam-call.py b/jaraco/home/report-spam-call.py index 5f284ea..3a9b5ed 100644 --- a/jaraco/home/report-spam-call.py +++ b/jaraco/home/report-spam-call.py @@ -4,11 +4,11 @@ import autocommand import tempora from splinter import Browser + from jaraco.compat.py38 import r_fix from . import contact as contact_info - DROPPED_CALL = '2' @@ -28,7 +28,7 @@ def report_spam_call( comment='', close=False, browser='firefox', - when: tempora.parse = datetime.datetime.now(), # type: ignore + when: tempora.parse = datetime.datetime.now(), dialed=None, ): """ @@ -39,9 +39,9 @@ def report_spam_call( browser.visit('https://www.donotcall.gov/report.html') browser.find_by_value('Continue').click() browser.fill('PhoneTextBox', clean_phone(dialed or contact.phone)) - browser.fill('DateOfCallTextBox', when.strftime('%m/%d/%Y')) # type: ignore - browser.select('TimeOfCallDropDownList', when.strftime('%H')) # type: ignore - browser.select('ddlMinutes', when.strftime('%M')) # type: ignore + browser.fill('DateOfCallTextBox', when.strftime('%m/%d/%Y')) + browser.select('TimeOfCallDropDownList', when.strftime('%H')) + browser.select('ddlMinutes', when.strftime('%M')) browser.choose('PrerecMsg', 'PrerecordMessageYESRadioButton') browser.choose('TextMsg', 'PhoneCallRadioButton') browser.select( diff --git a/mypy.ini b/mypy.ini index efcb8cb..5ad9955 100644 --- a/mypy.ini +++ b/mypy.ini @@ -13,3 +13,28 @@ explicit_package_bases = True disable_error_code = # Disable due to many false positives overload-overlap, + +# jaraco/jaraco.mongodb#41 +[mypy-jaraco.mongodb.*] +ignore_missing_imports = True + +# jaraco/tempora#35 +[mypy-tempora.*] +ignore_missing_imports = True + +# jaraco/jaraco.develop#20 +# Lucretiel/autocommand#38 +[mypy-autocommand.*] +ignore_missing_imports = True + +# cobrateam/splinter#1222 +[mypy-splinter.*] +ignore_missing_imports = True + +# cherrypy/cherrypy#1510 +[mypy-cherrypy.*] +ignore_missing_imports = True + +# https://bugs.launchpad.net/mockproc/+bug/2029024 +[mypy-mockproc.*] +ignore_missing_imports = True diff --git a/pyproject.toml b/pyproject.toml index 0222de2..97c68cd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -80,11 +80,9 @@ type = [ "pytest-mypy", # local + "lxml-stubs", + "jaraco.compat>=4.2.2", # py.typed; not necessary at runtime ] [tool.setuptools_scm] - - -[tool.pytest-enabler.mypy] -# Disabled due to jaraco/skeleton#143