Age | Commit message (Collapse) | Author |
|
Various QUrl methods that take a UrlFormattingOption enum member can also
take ComponentFormattingOption ones but something doesn't know that and throws
a TypeError.
`url.toString(QUrl.UrlFormattingOption.RemovePassword | QUrl.ComponentFormattingOption.FullyEncoded)` works, `url.toString(QUrl.ComponentFormattingOption.FullyEncoded | QUrl.UrlFormattingOption.RemovePassword )` doesn't.
|
|
See #5904
|
|
|
|
Fixes #6407
|
|
|
|
As for the mypy unreachable warning, see:
See https://github.com/python/mypy/issues/7214
and https://github.com/python/mypy/issues/8766
Includes cherry-pick of 27ad47825279a39141efd11ec9cc54ff2a872517
|
|
This makes CompletionParser.parse simpler and makes ParseResult.cmd and
.args non-Optional. Them being Optional would mean we would've to either
resort to more complex typing with Literal, or to check whether they are
really non-None everywhere.
Since fallback=True is only used at one point, let's just handle this at
the calling site instead.
In theory, this changes the behavior when the cmdstr is empty and
self._partial_match is set, because we now raise early and
self._completion_match isn't called anymore. In practice, I think this
shouldn't make a difference anywhere, and tests seem to agree.
If cmdstr is empty and self._partial_match is False, the behavior should
be the same, because objects.commands[''] will raise KeyError.
|
|
|
|
See https://github.com/qutebrowser/qutebrowser/pull/5967#issuecomment-791373157
but no issues with circular imports here, from what I can see...
|
|
|
|
|
|
|
|
|
|
|
|
Add a test and also allow setting a deprecated alias for a command
easily.
|
|
|
|
PEP 563: https://www.python.org/dev/peps/pep-0563/
See #5769
|
|
|
|
Closes #6015
|
|
See #937
|
|
See #6022
|
|
See #6023
|
|
See #6023
|
|
See #6023
|
|
|
|
commands.runners depends on config.config to get aliases and the
best_match setting, while config.config depends on commands.runners to
split commands. Eliminate this circular dependency by:
- Moving CommandParser from commands.runners into its a new
commands.parser module
- Pass aliases/config settings into CommandParser as arguments
|
|
fixes #5615
|
|
Update files in `api`, `commands`, `completion`, `components`, and
`etensions`.
See #5396
|
|
See #4800
|
|
|
|
os.mkfifo uses mode 0666 masked with the umask, i.e. 0644 on most systems by
default. We'd like things to be more restrictive, to make sure other users
can't get any data from another users' userscript FIFO.
This shouldn't make any difference in practice because the FIFO is in
standarddir.runtime() which must have 0700 permissions (and qutebrowser creates
all standarddir directories with 0700 permissions if they don't exist).
However, it's still a good idea to restrict the permissions as a second line of
defense.
|
|
As an additional precaution that a "tainted" path isn't being used anywhere.
See https://github.com/qutebrowser/qutebrowser/security/code-scanning/2
|
|
(cherry picked from commit 279d28f982f3afe32c94fc938677bcad816b647e)
|
|
|
|
See #5368
|
|
See #5368
|
|
See #5368
|
|
|
|
|
|
|
|
We now use a format string for the user_agent setting and parse both backend's
default user agents to get the needed information.
Fixes #513
|
|
See #640
|
|
|
|
|
|
|
|
|
|
|
|
|
|
See #640
|
|
This is intended as a stop-gap solution to get things out of objreg - we can
now get things out gradually, and as the last step, take care of commands.
See #640
|