-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Re-export more names in sphinx.domains.python
#12297
Conversation
sphinx.domains.python
sphinx.domains.python
sphinx.domains.python
sphinx.domains.python
I think given the initial blast radius of #12295, it may be worth making these private methods more accessible and/or putting them on a more rigorous deprecation schedule. |
hard -1, if you are using private methods, then that is entirely your own risk; there is enough public API to worry about already 😅 |
sphinx-immaterial heavily monkey patches sphinx to add functionality and indeed it is on us to deal with changes in sphinx. |
oh trust me, I'm not happy about that either 😄
but yes, whether it usual or not (I wouldn't say so much), its absolutely not within the "contract" of any package to care or account for this type of usage.
This is the way 😁 |
# Conflicts: # sphinx/domains/c/__init__.py # sphinx/domains/cpp/__init__.py
sphinx.domains.python
sphinx.domains.python
My main concern is the refactor of public API members ( Many linters have warnings about importing from private modules, so any third-party extension that might want to implement their own autodoc behavior would have to either
Simply put, it would be more PEP8 compliant if the any refactored modules that contain previously public API to be renamed as public modules. Change |
Not that's not necessary, you just use |
Using |
Subject: Re-export various names in
sphinx.domains.python
Feature or Bugfix
Purpose
sphinx.domains.python
Detail
sphinx.domains.python
Relates