Fix pylint issue E0606: possibly-used-before-assignment
Fix: assemblers/org.osbuild.qemu:310:36: E0606: Possibly using variable 'prep_type' before assignment (possibly-used-before-assignment) inputs/org.osbuild.tree:85:15: E0606: Possibly using variable 'path' before assignment (possibly-used-before-assignment) stages/org.osbuild.sfdisk:58:36: E0606: Possibly using variable 'prep_type' before assignment (possibly-used-before-assignment) stages/org.osbuild.systemd.unit:23:16: E0606: Possibly using variable 'unit_dropins_dir' before assignment (possibly-used-before-assignment) test/mod/test_meta.py:219:29: E0606: Possibly using variable 'schema_part' before assignment (possibly-used-before-assignment) Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
parent
7f86ccc7fc
commit
3ac6d405b5
5 changed files with 10 additions and 0 deletions
|
|
@ -206,6 +206,7 @@ def make_fake_meta_json(tmp_path, name, version, invalid=""):
|
|||
"not": "following schema"
|
||||
"""
|
||||
|
||||
# pylint: disable=possibly-used-before-assignment
|
||||
meta_json_path.write_text("""
|
||||
{
|
||||
"summary": "some json summary",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue