Skip to content

function-call-in-default-argument (B008) exception, frozenset, not treated as exception #25248

@hunterhogan

Description

@hunterhogan

Summary

Rule function-call-in-default-argument (B008) reads, "Parameters with immutable type annotations will be ignored by this rule."

Python documentation reads, "The frozenset type is immutable."

However, this triggers B008:

def functionB008(anArgument: frozenset[str] = aFunction()) -> None:
    pass

Playground

Version

v0.15.13

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions