JetBrains-Research / snakecharm

Plugin for PyCharm / IntelliJ IDEA Platform IDEs which adds support for Snakemake language.
MIT License
61 stars 7 forks source link

Unresolved reference warning when iterating over 'input' key-value pairs using '.items()' #509

Open BertBog opened 1 year ago

BertBog commented 1 year ago

Hey,

I have encountered this minor issue where .items() is not recognized for the Snakemake input. For example:

rule a:
    input:
        IN_A = 'file_a.txt',
        IN_B = 'file_b.txt',
    output:
        OUT = 'all.txt'
    run:
        with open(output.OUT, 'w') as handle:
            for key, path in input.items():
                handle.write(path)

In this case PyCharm gives the warning: unresolved reference 'items' in 'input'