Skip to content

--no-implicit-reexport should treat names in __all__ as exported #7042

@Zac-HD

Description

@Zac-HD

From HypothesisWorks/hypothesis#2017, passing --no-implicit-reexport with Mypy 0.710 causes error: Module 'hypothesis' has no attribute 'given' - except that it does, and given is listed in the __all__ attribute.

IMO when __all__ is present only those names should be considered explicitly re-exported, though taking the union of those and the from-import-x-as-x form would be reasonable too. Ignoring __all__ is pretty weird though!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy