Skip to content

# pyright: ignore[reportImportCycles] doesn't work #1312

@DetachHead

Description

@DetachHead

@DetachHead quick question: how should I go about disabling the warning for single case? I've tried putting a # pyright: ignore[reportImportCycles] comment everywhere but it doesn't seem to pick it up. I like to have the diagnostic in general, but in one particular case I'm dealing with having to import a version specifier from the __init__.py module to set it on an object while simultaneously exporting that object in the module (the import is deferred to a function, so no runtime issues).

(Thanks a lot for this amazing tool, I can't believe I stumbled across it so late, it's been a huge boon to my productivity)

Originally posted by @oelhammouchi in #960

Metadata

Metadata

Assignees

No one assigned

    Labels

    type checking / lintingissues relating to existing diagnostic rules or proposals for new diagnostic rules

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions