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

Expected iterable, but got wildcards type inspection false positive #316

Open
iromeo opened this issue Sep 7, 2020 · 0 comments
Open

Expected iterable, but got wildcards type inspection false positive #316

iromeo opened this issue Sep 7, 2020 · 0 comments
Assignees
Labels
3rd party bug Something isn't working codeInsight Code completion, resolve inspections Code inspections

Comments

@iromeo
Copy link
Contributor

iromeo commented Sep 7, 2020

It is PyCharm PyTypeChecker related inspection, doesn't work correctly in snakemake code

image

rule npz_consensus_prepare_full_proportions_table:
    input:
        npz=lambda wildcards: {
            "merged_consensus": pu.collect_npz(
                rules.methylation_npz_merge_strands_cpg.output.npz,
                SAMPLES_DF,
                mmc_mincov=config["merge_cpg_mincov"]
            ),
            "stranded_consensus": pu.collect_npz(
                rules.methylation_npz_stranded_npz_from_bismark_cov.output.npz,
                SAMPLES_DF,
            ),
        }[wildcards.consensus],
        chromsizes=ancient("indexes/{genome}/{genome}.chrom.sizes")
    params:
        # noinspection PyShadowingBuiltins, PyTypeChecker,PyShadowingNames
        methylomes=lambda wildcards, input: ",".join(input.npz)
@iromeo iromeo added this to the 0.8.x milestone Sep 7, 2020
@iromeo iromeo self-assigned this Sep 7, 2020
@iromeo iromeo added 3rd party bug Something isn't working codeInsight Code completion, resolve inspections Code inspections labels Sep 7, 2020
@iromeo iromeo modified the milestones: 0.8.x, PyCharm API Enhancement Sep 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3rd party bug Something isn't working codeInsight Code completion, resolve inspections Code inspections
Projects
None yet
Development

No branches or pull requests

1 participant