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

'Shadows built-in name input' inspection on lambda parameters #133

Open
sharkovadarya opened this issue Jul 19, 2019 · 4 comments
Open

'Shadows built-in name input' inspection on lambda parameters #133

sharkovadarya opened this issue Jul 19, 2019 · 4 comments
Assignees
Labels
3rd party bug Something isn't working inspections Code inspections

Comments

@sharkovadarya
Copy link
Contributor

input can be used as a lambda parameter name for params section (see snakemake docs for params), it's probably best not to highlight a valid parameter name.

image

@iromeo iromeo added bug Something isn't working inspections Code inspections labels Jul 26, 2019
@iromeo iromeo modified the milestones: Backlog, 0.10.0 Jul 3, 2020
@iromeo
Copy link
Contributor

iromeo commented Sep 4, 2020

Same error for output

params:
        batches = ",".join(SAMPLES_DF["batch_prefix"]),
        basename=lambda wildcards, output: os.path.splitext(output[0])

@iromeo
Copy link
Contributor

iromeo commented Sep 4, 2020

Also

def collect_wildcards_for_condition(params):
...

image

@iromeo
Copy link
Contributor

iromeo commented Sep 7, 2020

Also:

image
image

@iromeo iromeo self-assigned this Sep 8, 2020
@iromeo
Copy link
Contributor

iromeo commented Sep 8, 2020

See PyShadowingNamesInspection, PyShadowingBuiltinsInspection

iromeo added a commit that referenced this issue 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 inspections Code inspections
Projects
None yet
Development

No branches or pull requests

2 participants