mypy: ignore enum binary operator: UrlFormattingOption

Yet another case of confusion between flags and enum objects.
This commit is contained in:
toofar 2022-09-11 11:58:12 +12:00
parent a70954a65f
commit db8cb25bd3
1 changed files with 1 additions and 1 deletions

View File

@ -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