mypy: ignore enum binary operator: UrlFormattingOption
Yet another case of confusion between flags and enum objects.
This commit is contained in:
parent
a70954a65f
commit
db8cb25bd3
|
|
@ -254,7 +254,7 @@ class HintActions:
|
|||
|
||||
flags = QUrl.ComponentFormattingOption.FullyEncoded | QUrl.UrlFormattingOption.RemovePassword
|
||||
if url.scheme() == 'mailto':
|
||||
flags |= QUrl.UrlFormattingOption.RemoveScheme
|
||||
flags |= QUrl.UrlFormattingOption.RemoveScheme # type: ignore[operator]
|
||||
urlstr = url.toString(flags)
|
||||
|
||||
new_content = urlstr
|
||||
|
|
|
|||
Loading…
Reference in New Issue