Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
BertBog opened this issue Nov 17, 2023 · 0 comments

Comments

@BertBog
Copy link

BertBog commented Nov 17, 2023

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant