Skip to content

possible PLC2701 false positive #22187

@dotysan

Description

@dotysan

Summary

Apolgies if I'm misunderstanding. But this:

from mirror_syno.__main__ import main

is throwing PLC2701 on the last word 'main':

Private name import `__main__` from external module `mirror_syno`

There is no dunder in main. And I don't believe __main__ as a module is a violation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpreviewRelated to preview mode featuresruleImplementing or modifying a lint rule

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions