Skip to content

Prefix all internal modules with _ to clarify they're private#314

Merged
bluetech merged 1 commit into
pytest-dev:masterfrom
bluetech:internal-modules-private
Aug 10, 2021
Merged

Prefix all internal modules with _ to clarify they're private#314
bluetech merged 1 commit into
pytest-dev:masterfrom
bluetech:internal-modules-private

Conversation

@bluetech

@bluetech bluetech commented Aug 9, 2021

Copy link
Copy Markdown
Member

Some were already prefixed, but some weren't.

This clarifies that pluggy's only public API is what's exported from the
top-level pluggy module.

This will allow internal code to be nicer, not having to defensively
prefix internal types and functions with _.

Fixes #313.

@nicoddemus nicoddemus left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! 🚀

Some were already prefixed, but some weren't.

This clarifies that pluggy's only public API is what's exported from the
top-level `pluggy` module.

This will allow internal code to be nicer, not having to defensively
prefix internal types and functions with _.

Fixes pytest-dev#313.
@bluetech bluetech force-pushed the internal-modules-private branch from d49c0fe to 60f0fd6 Compare August 10, 2021 13:41
@bluetech bluetech merged commit 90d46dc into pytest-dev:master Aug 10, 2021
@bluetech bluetech deleted the internal-modules-private branch August 10, 2021 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Prefix all internal modules with _ to clarify they're private

3 participants