Skip to content

♻️ reduce reliance on "fake" *._typing modules#731

Merged
jorenham merged 1 commit into
masterfrom
_typing-cleanup
Jul 9, 2025
Merged

♻️ reduce reliance on "fake" *._typing modules#731
jorenham merged 1 commit into
masterfrom
_typing-cleanup

Conversation

@jorenham

@jorenham jorenham commented Jul 9, 2025

Copy link
Copy Markdown
Member

The goal is to minimize the size of the "fake" type-check-only *._typing modules. Otherwise, users might be tempted to use them scipy-stubs grows bigger (like has happened with numpy._typing).

Some type aliases such as Truthy, Falsy, RNG, and ToRNG are nowadays also available in optype. Some others were moved to the ._typing modules of specific subpackages if they were only used there. Some small literals that weren't used that often were inlined. The contextmanager mixins were replaced with a single one for __exit__.

@jorenham jorenham added this to the 1.16.0.3 milestone Jul 9, 2025
@jorenham jorenham merged commit 5c8cd4a into master Jul 9, 2025
19 checks passed
@jorenham jorenham deleted the _typing-cleanup branch July 9, 2025 02:51
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.

1 participant