Skip to content

Suppress 'duplicate module named xx' errors? #4008

Closed
@OJFord

Description

@OJFord

Am I right in thinking it's not presently possible to ignore errors for having multiple (as the error should really say, rather than 'duplicate') modules with the same name?

I'm running mypy on files in a repo that contains multiple packages with some commonality among them; for example they each have a src/wsgi.py, which renders:

error: Duplicate module named 'src.wsgi'

  1. I think this should be reworded Multiple modules named xx
  2. Would you be open to an --allow-same-name-modules/allow_same_name_modules = True or similar?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions