Skip to content

N806 - false positive for class #89

@PaszaVonPomiot

Description

@PaszaVonPomiot

Regarding N806 (variable in function should be lowercase)
In Django I have a class that I create alias for which should be uppercase because it's still a class:

if a=1:
    AliasMyClass = MyClass1
if a=2:
    AliasMyClass = MyClass2

AliasMyClass.objects.create......

So it's clearly a false positive to me. Can you fix it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions