pylint: Work around used-before-assignment issues
See https://github.com/PyCQA/pylint/issues/6035
This commit is contained in:
parent
fe22b2b0b0
commit
f45dcb1aba
|
|
@ -39,7 +39,7 @@ class CompletionInfo:
|
|||
"""Context passed into all completion functions."""
|
||||
|
||||
config: config.Config
|
||||
keyconf: config.KeyConfig # pylint: disable=undefined-variable
|
||||
keyconf: config.KeyConfig # pylint: disable=used-before-assignment
|
||||
win_id: int
|
||||
cur_tab: 'browsertab.AbstractTab'
|
||||
|
||||
|
|
|
|||
|
|
@ -596,9 +596,9 @@ def github_upload(artifacts, tag, gh_token):
|
|||
assets = [asset for asset in release.assets()
|
||||
if asset.name == basename]
|
||||
if assets:
|
||||
asset = assets[0]
|
||||
print("Deleting stray asset {}".format(asset.name))
|
||||
asset.delete()
|
||||
stray_asset = assets[0]
|
||||
print("Deleting stray asset {}".format(stray_asset.name))
|
||||
stray_asset.delete()
|
||||
else:
|
||||
break
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue