Skip to content

Fix missing scope_type positional argument for ScopeConsumer #358

Closed
@carlio

Description

@carlio

You may see stack-traces containing things like:

    consumer._atomic = ScopeConsumer(new_things, consumer.consumed, consumer.scope_type)  # pylint: disable=W0212
TypeError: <lambda>() missing 1 required positional argument: 'scope_type'

To fix this, pylint-django needs to add backwards/forwards compatibility for ScopeConsumer

See the original issue here - pylint-dev/pylint#5970 (comment)

Pylint 2.13 changed the shape of the ScopeConsumer tuple so pylint-django needs to handle that.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions