Skip to content

inplace set to a variable raises exception #111

@manuel-lopez-lyb

Description

@manuel-lopez-lyb

Describe the bug
raised exception

To Reproduce
Steps to reproduce the behavior:

Have the following code in a file

def some_function(dataFrame, in_place=False):
    return dataFrame.drop([], inplace=in_place)

Expected behavior
Allow flake8 to report violations and not throw exceptions.

Screenshots
Screen Shot 2021-09-11 at 11 42 54 AM

Additional context

bash-5.1# cat /usr/lib/python3.9/site-packages/pandas_vet/version.py 
__version__ = "0.2.2"

This is running on a docker container based on alpine:3.14.1. Same results obtained on a mac.

Things work if we do not provide a variable:

def some_function(dataFrame, in_place=False):
    return dataFrame.drop([], inplace=False)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions