Commit Graph

58 Commits

Author SHA1 Message Date
Florian Bruhin 5b9237318e Hide mypy.ini 2020-06-09 13:19:02 +02:00
Florian Bruhin 3679d3a05b mypy: Disallow incomplete defs globally 2020-05-10 19:32:38 +02:00
Florian Bruhin 3a63db5e48 mypy: Remove unused config sections 2020-05-10 19:17:31 +02:00
Florian Bruhin b737874c52 mypy: Reorganize --strict flags 2020-05-10 19:16:49 +02:00
Florian Bruhin 9d4de0163a Add types for eventfilter/quitter 2020-01-13 08:17:04 +01:00
Florian Bruhin ede2dcf4c2 Run mypy over tests as well
Rationale: https://twitter.com/codewithanthony/status/1188958327318794241
2019-10-29 12:10:32 +01:00
Florian Bruhin f7d4a67342 mypy: Add typeshed issue link for bdb 2019-10-23 11:01:49 +02:00
Florian Bruhin 34ed37a5b0 mypy: Fix new issues in qtnetworkdownloads/webkit.mhtml/adblock 2019-10-22 17:23:31 +02:00
Florian Bruhin cd71cee144 mypy: check_untyped_defs for entire codebase 2019-10-15 23:38:48 +02:00
Florian Bruhin a592651a0f mypy: check_untyped_defs for browser.webkit 2019-10-15 23:27:58 +02:00
Florian Bruhin 7ada7082aa mypy: check_untyped_defs for most of qutebrowser.browser 2019-10-15 22:52:48 +02:00
Florian Bruhin 3a9d0bd3ff mypy: check_untyped_defs for qutebrowser.misc 2019-10-15 21:41:46 +02:00
Florian Bruhin d38752aa82 mypy: check_untyped_defs for qutebrowser.completion 2019-10-15 20:33:07 +02:00
Florian Bruhin fe2463c63b mypy: check_untyped_defs for qutebrowser.mainwindow 2019-10-15 18:59:55 +02:00
Florian Bruhin 02bde80f0b mypy: check_untyped_defs for qutebrowser.app 2019-10-15 18:14:39 +02:00
Florian Bruhin 76e11911d9 mypy: check_untyped_defs for qutebrowser.javascript 2019-10-15 18:13:07 +02:00
Florian Bruhin 528e481021 mypy: check_untyped_defs for qutebrowser.commands 2019-10-15 18:12:26 +02:00
Florian Bruhin 082b1e2ef6 Add type annotations for mainwindow.statusbar.command 2019-10-13 18:38:07 +02:00
Florian Bruhin 2bb8735fcb Rewrite misc.backendproblem to not use objreg
This means 'quitter' can now use command_only=True

See #640
2019-10-13 18:38:07 +02:00
Florian Bruhin e9764975ec Add type annotations for utils.objreg 2019-10-11 17:28:01 +02:00
Florian Bruhin 1551844416 Add type annotations for utils.version 2019-10-11 17:18:30 +02:00
Florian Bruhin 28a2e44bd3 Continue type annotations for utils.utils 2019-10-11 16:58:26 +02:00
Florian Bruhin ef88663ecd Finish type hints for utils.usertypes 2019-10-11 16:23:44 +02:00
Florian Bruhin 87df767060 Add type annotations for utils.urlutils 2019-10-11 15:42:12 +02:00
Florian Bruhin 0e5884fd49 Add type annotations for utils.urlmatch 2019-10-11 15:42:12 +02:00
Florian Bruhin 2f8686b49c Add some type annotations for utils.standarddir 2019-10-11 14:47:16 +02:00
Florian Bruhin 69e94efdf0 Add type annotations for utils.qtutils
Some IO stuff is quite tricky, so we needed to do "# type: ignore" at some
places...
2019-10-11 14:47:16 +02:00
Florian Bruhin 218c8bbf1e Add type hints for utils.message 2019-10-11 14:16:05 +02:00
Florian Bruhin f460fc541a Add first type annotations for utils.log 2019-10-11 11:23:29 +02:00
Florian Bruhin 2bd138e3db Add type annotations for utils.jinja 2019-10-11 09:29:03 +02:00
Florian Bruhin 97897fd748 Add type annotations for utils.javascript 2019-10-11 09:29:03 +02:00
Florian Bruhin 134c6eaf0e Add type annotations for utils.error 2019-10-11 09:29:03 +02:00
Florian Bruhin aba1e9028f Add type annotations for utils.docutils 2019-10-11 09:29:03 +02:00
Florian Bruhin b6f027427c Add type annotations for utils.debug 2019-10-11 09:29:03 +02:00
Florian Bruhin 00c341fe6d Add type hints for browser.hints 2019-10-10 09:37:29 +02:00
Florian Bruhin 62dd08f6d6 Add type annotations for keyinput.modeman 2019-10-09 23:28:33 +02:00
Florian Bruhin 4d7cbae5b2 mypy: Enforce type annotations for more modules 2019-10-09 22:11:01 +02:00
Florian Bruhin c09c1fb006 Update to mypy 0.730
We can't use specific type ignores yet as there is no pyflakes release with
this change in: https://github.com/PyCQA/pyflakes/pull/455
2019-09-26 22:29:22 +02:00
Florian Bruhin 8fe68b7dc8 mypy: Turn on warn_unreachable 2019-07-23 10:54:21 +02:00
Florian Bruhin 9ae26e63fe mypy: Turn on strict_equality 2019-04-09 16:49:35 +02:00
Florian Bruhin 81375b3029 Add type annotations for webelem/webkitelem/webengineelem 2018-12-13 11:29:52 +01:00
Florian Bruhin 184e41b538 Adjustments for mypy upgrade 2018-12-10 20:05:59 +01:00
Florian Bruhin fcb39c1d7f Add types to extensions.loader 2018-12-10 12:37:58 +01:00
Florian Bruhin b9cb98a5ef mypy: Add types for config.websettings 2018-12-05 17:48:56 +01:00
Florian Bruhin f53fd56c3d mypy: Add annotations for qutebrowser.config.configtypes 2018-12-05 17:06:45 +01:00
Florian Bruhin 268ad40982 Add and enforce types for api.*/components.* 2018-12-04 15:52:14 +01:00
Florian Bruhin 953042d75d mypy: Disable untyped decorators 2018-12-04 07:28:28 +01:00
Florian Bruhin 13dac9eef5 Revert "Revert "Add types for most of qutebrowser.config""
This reverts commit 7494d238ce.
2018-12-03 15:36:21 +01:00
Florian Bruhin 7494d238ce Revert "Add types for most of qutebrowser.config"
It breaks 'tsh' because of the *values annotation.
This reverts commit 208d3db475.
2018-12-03 13:17:23 +01:00
Florian Bruhin 208d3db475 Add types for most of qutebrowser.config 2018-12-03 12:35:51 +01:00