Skip to content

invalid-metaclass diagnostic range is far too broad #3116

@AlexWaygood

Description

@AlexWaygood

Summary

Looks like it currently spans the whole class if you try to use a metaclass that isn't callable; it should probably just be the class header (or even just the metaclass= keyword argument)

Version

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingdiagnosticsRelated to reporting of diagnostics.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions