Florian Bruhin
984970e765
vulture: Ignore reserved value
2018-11-27 08:59:13 +01:00
Florian Bruhin
c931654a8d
Remove old exit status values
...
Those weren't used anymore since bc8176ff21
.
Since the values were removed in v1.0.0 and never used since then, it seems
fine to re-use them in the future.
2018-11-27 08:57:49 +01:00
Florian Bruhin
80808ee9d2
Add docstring
2018-11-27 08:54:25 +01:00
Florian Bruhin
ec0dc59b06
mypy: Disable warn_unused_configs
...
Looks like mypy's cache causes config sections to be ignored sometimes.
2018-11-27 08:53:20 +01:00
Florian Bruhin
7934dc9a95
mypy: Fix assert location
2018-11-27 08:37:59 +01:00
Florian Bruhin
f34a8ba194
Update changelog
2018-11-26 23:32:20 +01:00
Florian Bruhin
06afd3604e
Don't try to iterate over auth info
...
This caused a crash when trying to use a proxy with authentication on QtWebKit.
It was introduced in 3a5241b642
since it was a
namedtuple before and was iterable like this.
2018-11-26 23:30:55 +01:00
Florian Bruhin
e851480a2b
Use empty tuple instead of None
...
While None works (as logging.py does "if args:" consistently), it was never
intended to be used like that.
2018-11-26 23:30:21 +01:00
Florian Bruhin
462e07a578
Use integer division to set font weight
...
QFont::setFontWeight takes an int only - it looks like PyQt accepts a float and
just truncates it. That's the behaviour we actually want here, but let's be
explicit about it.
2018-11-26 23:25:13 +01:00
Florian Bruhin
d2751935e0
Convert *args to list
...
It being a tuple also happens to work, but is somewhat inconsistent.
2018-11-26 23:24:41 +01:00
Florian Bruhin
6b5a92fb2d
mypy: Update config
2018-11-26 23:24:31 +01:00
Florian Bruhin
1f36e56e1c
Complete partial annotations
...
Unfortunately we can't turn on mypy's --disallow-incomplete-defs (yet) due to
https://github.com/python/mypy/issues/5954
2018-11-26 20:12:03 +01:00
pyup-bot
9a3e0a34e7
Update pygments from 2.2.0 to 2.3.0
2018-11-26 19:10:27 +01:00
pyup-bot
2cd67260fc
Update colorama from 0.4.0 to 0.4.1
2018-11-26 19:10:26 +01:00
pyup-bot
866c009677
Update pytest from 4.0.0 to 4.0.1
2018-11-26 19:10:24 +01:00
pyup-bot
fe4baa8cea
Update hunter from 2.0.2 to 2.1.0
2018-11-26 19:10:22 +01:00
pyup-bot
4318dd500a
Update pylint from 2.1.1 to 2.2.0
2018-11-26 19:10:21 +01:00
pyup-bot
6131cf538f
Update cryptography from 2.4.1 to 2.4.2
2018-11-26 19:10:19 +01:00
pyup-bot
4791d581f8
Update astroid from 2.0.4 to 2.1.0
2018-11-26 19:10:17 +01:00
pyup-bot
343f3025fc
Update wheel from 0.32.2 to 0.32.3
2018-11-26 19:10:16 +01:00
pyup-bot
a651f8b550
Update setuptools from 40.5.0 to 40.6.2
2018-11-26 19:10:14 +01:00
Florian Bruhin
fda807ce9a
mypy: Allow trivial --strict options
2018-11-26 19:03:07 +01:00
Florian Bruhin
4b4b746791
mypy: Add type annotations for browsertab.AbstractAction
2018-11-26 18:25:12 +01:00
Florian Bruhin
7834e3c7dd
mypy: Add mypy.ini to ignore missing modules
2018-11-26 18:25:12 +01:00
Florian Bruhin
ee1f7a5187
mypy: Use own copy of PyQt5-stubs
...
The one by upstream need various fixes which aren't merged yet.
2018-11-26 18:25:12 +01:00
Florian Bruhin
01b2c40272
Add requirements-optional.txt
2018-11-26 18:25:12 +01:00
Florian Bruhin
bd731593ce
mypy: Add {posargs} in tox.ini
2018-11-26 18:25:12 +01:00
Florian Bruhin
3cc2af909b
mypy: Add PyQt5 stubs
2018-11-26 18:25:12 +01:00
Florian Bruhin
12b26512fc
mypy: Fix :session-save
...
We use a sentinel value for the argument so we can check whether the default
was used. To express that in the type system, it needs a separate class.
2018-11-26 18:25:12 +01:00
Florian Bruhin
8b1fd83366
mypy: Fix AbstractSettings default values
2018-11-26 18:25:12 +01:00
Florian Bruhin
8083091967
mypy: Fix _color_flag init
2018-11-26 18:25:12 +01:00
Florian Bruhin
923fd89323
mypy: Fix int-issues in commands.py
2018-11-26 18:25:12 +01:00
Florian Bruhin
08bd47bc16
mypy: Fix type for :scroll
2018-11-26 18:25:12 +01:00
Florian Bruhin
b63ed090d8
mypy: Fix log handler access
2018-11-26 18:25:12 +01:00
Florian Bruhin
c2c3f68828
mypy: Move tabbed_browser
2018-11-26 18:25:12 +01:00
Florian Bruhin
052c3f92ad
mypy: Fix issues with config default values
2018-11-26 18:25:12 +01:00
Florian Bruhin
b37dbc4572
mypy: Add missing annotations
2018-11-26 18:25:12 +01:00
Florian Bruhin
a1e83f0773
mypy: Use class-based API for enum.IntEnum
...
See https://github.com/python/mypy/issues/4865
2018-11-26 18:25:12 +01:00
Florian Bruhin
563e1e8294
mypy: Ignore yaml.CSafe{Loader,Dumper}
...
See https://github.com/python/typeshed/blob/master/third_party/2and3/yaml/__init__.pyi#L9
2018-11-26 18:24:19 +01:00
Florian Bruhin
97d0cff93b
mypy: Ignore ImportError handling
...
See https://github.com/python/mypy/issues/1153
2018-11-26 18:24:19 +01:00
Florian Bruhin
4d1b3df5e0
mypy: Fix logging.VDEBUG issues
2018-11-22 13:52:05 +01:00
Florian Bruhin
0999945af4
mypy: Run with --ignore-missing-imports
2018-11-22 13:52:01 +01:00
Florian Bruhin
85b2fb513b
mypy: Add to tox
2018-11-22 13:51:55 +01:00
Florian Bruhin
a2ba0b4c76
Thanks to the HSR!
2018-11-22 09:36:13 +01:00
Winny
de166f71dc
Fixup
2018-11-18 01:53:45 -06:00
Winny
a641dde9de
Change phrases to sound more definite/concrete
2018-11-18 01:50:03 -06:00
Florian Bruhin
2152081d82
s/an URL/a URL/g
2018-11-16 12:37:30 +01:00
Raphael Das Gupta
409e0d33cd
fix grammar: "to which" instead of "to where"
2018-11-16 00:43:18 +01:00
Raphael Das Gupta
bca47ff879
Fix grammar: add required comma
2018-11-16 00:42:17 +01:00
Raphael Das Gupta
7ee68c43df
Fix grammar: This kind of question requires "does"
...
in English
2018-11-16 00:39:54 +01:00