Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

False-positive when Loader= not used in yaml.load(foo, yaml.SafeLoader) #546

Closed
Closed
False-positive when Loader= not used in yaml.load(foo, yaml.SafeLoader)#546
Assignees
Labels
bugSomething isn't working

Description

Summary

In the fix for #437, we forgot to handle positional arguments, it seems context.get_call_arg_at_position [1] can resolve this. PR #436 has all the related code one needs to edit.

yaml.load(foo, yaml.SafeLoader), note no Loader= keyword argument, we will alert off of it.

p.s. Labels: good first issue, accuracy

[1]

def get_call_arg_at_position(self, position_num):
'''Returns positional argument at the specified position (if it exists)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions