Skip to content

Multiples index error on Context class #448

@ehooo

Description

@ehooo

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Create a rule for 'Bytes', 'Str', 'ImportFrom', 'Import' or 'FunctionDef'
  2. With the context call to call_args or get_lineno_for_call_arg

Expected behavior
No crack

Bandit version

bandit 1.5.1

Additional context
Also happens with function_def_defaults_qual

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions