Skip to content

MAINT: Explicitly re-export the types in numpy._typing#21243

Merged
charris merged 1 commit intonumpy:maintenance/1.22.xfrom
BvB93:re-export
Mar 25, 2022
Merged

MAINT: Explicitly re-export the types in numpy._typing#21243
charris merged 1 commit intonumpy:maintenance/1.22.xfrom
BvB93:re-export

Conversation

@BvB93
Copy link
Copy Markdown
Member

@BvB93 BvB93 commented Mar 25, 2022

Partial backport of #21216 (70176f6)


Closes #21214

This PR accomplishes two things:

  • It splits numpy.typing into a public and private sub-package, allowing a greater degree of separation of the public interface from the list of private types and type-aliases. This one in particular has been on my wish list for some time due to the ever growing number of private members.
  • While the public members of the (previously unified) numpy.typing sub-package were already explicitly marked as re-exported, this was not the case for its' private members, resulting in BUG: Usage of implicit reexports breaks using mypy with --no-implicit-reexport #21214. This issues has been rectified in 70176f6, which should be backported to 1.22.4 (I'll create a PR once this one is merged, as I anticipate a merge conflict or two).

@BvB93 BvB93 added this to the 1.22.4 release milestone Mar 25, 2022
@charris charris merged commit 55619bc into numpy:maintenance/1.22.x Mar 25, 2022
@charris
Copy link
Copy Markdown
Member

charris commented Mar 25, 2022

Thanks Bas. The test failures look unrelated.

@BvB93 BvB93 deleted the re-export branch March 25, 2022 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants