Skip to content
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

Always mention explicit export when relevant #13925

Merged
merged 2 commits into from
Oct 20, 2022

Conversation

hauntsaninja
Copy link
Collaborator

Related to #13917 and #13908. This handles situations involving per-module re-exports correctly / is consistent with the error you'd get with attribute access.

Related to python#13917 and python#13908. This handles situations involving
per-module re-exports correctly / is consistent with the error you'd get
with attribute access.
@github-actions

This comment has been minimized.

@github-actions
Copy link
Contributor

Diff from mypy_primer, showing the effect of this PR on open source code:

streamlit (https://github.com/streamlit/streamlit)
- lib/tests/streamlit/config_option_test.py:20:1: error: Module "streamlit.config_option" does not explicitly export attribute "DeprecationError"; implicit reexport disabled  [attr-defined]
+ lib/tests/streamlit/config_option_test.py:20:1: error: Module "streamlit.config_option" does not explicitly export attribute "DeprecationError"  [attr-defined]
- lib/tests/streamlit/web/server/routes_test.py:28:1: error: Module "streamlit.web.server.server" does not explicitly export attribute "HealthHandler"; implicit reexport disabled  [attr-defined]
+ lib/tests/streamlit/web/server/routes_test.py:28:1: error: Module "streamlit.web.server.server" does not explicitly export attribute "HealthHandler"  [attr-defined]
- lib/tests/streamlit/web/server/routes_test.py:28:1: error: Module "streamlit.web.server.server" does not explicitly export attribute "MessageCacheHandler"; implicit reexport disabled  [attr-defined]
+ lib/tests/streamlit/web/server/routes_test.py:28:1: error: Module "streamlit.web.server.server" does not explicitly export attribute "MessageCacheHandler"  [attr-defined]
- lib/tests/streamlit/web/server/routes_test.py:28:1: error: Module "streamlit.web.server.server" does not explicitly export attribute "StaticFileHandler"; implicit reexport disabled  [attr-defined]
+ lib/tests/streamlit/web/server/routes_test.py:28:1: error: Module "streamlit.web.server.server" does not explicitly export attribute "StaticFileHandler"  [attr-defined]
- lib/tests/streamlit/web/server/component_request_handler_test.py:21:1: error: Module "streamlit.web.server" does not explicitly export attribute "ComponentRequestHandler"; implicit reexport disabled  [attr-defined]
+ lib/tests/streamlit/web/server/component_request_handler_test.py:21:1: error: Module "streamlit.web.server" does not explicitly export attribute "ComponentRequestHandler"  [attr-defined]
- lib/tests/streamlit/web/server/browser_websocket_handler_test.py:25:1: error: Module "streamlit.web.server.server" does not explicitly export attribute "BrowserWebSocketHandler"; implicit reexport disabled  [attr-defined]
+ lib/tests/streamlit/web/server/browser_websocket_handler_test.py:25:1: error: Module "streamlit.web.server.server" does not explicitly export attribute "BrowserWebSocketHandler"  [attr-defined]
- lib/tests/streamlit/runtime/caching/common_cache_test.py:24:1: error: Module "streamlit.runtime.caching" does not explicitly export attribute "MEMO_CALL_STACK"; implicit reexport disabled  [attr-defined]
+ lib/tests/streamlit/runtime/caching/common_cache_test.py:24:1: error: Module "streamlit.runtime.caching" does not explicitly export attribute "MEMO_CALL_STACK"  [attr-defined]
- lib/tests/streamlit/runtime/caching/common_cache_test.py:24:1: error: Module "streamlit.runtime.caching" does not explicitly export attribute "SINGLETON_CALL_STACK"; implicit reexport disabled  [attr-defined]
+ lib/tests/streamlit/runtime/caching/common_cache_test.py:24:1: error: Module "streamlit.runtime.caching" does not explicitly export attribute "SINGLETON_CALL_STACK"  [attr-defined]

werkzeug (https://github.com/pallets/werkzeug)
- tests/test_debug.py:8: error: Module "werkzeug.debug" does not explicitly export attribute "DebugTraceback"; implicit reexport disabled  [attr-defined]
+ tests/test_debug.py:8: error: Module "werkzeug.debug" does not explicitly export attribute "DebugTraceback"  [attr-defined]

parso (https://github.com/davidhalter/parso)
- parso/python/tree.py:49: error: Module "collections" has no attribute "Mapping"  [attr-defined]
+ parso/python/tree.py:49: error: Module "collections" does not explicitly export attribute "Mapping"  [attr-defined]

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.

2 participants