We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fddd5c5 commit 3098574Copy full SHA for 3098574
mypy/semanal.py
@@ -2618,11 +2618,14 @@ def report_missing_module_attribute(
2618
typing_extensions = self.modules.get("typing_extensions")
2619
if typing_extensions and source_id in typing_extensions.names:
2620
self.msg.note(
2621
- f"Use `from typing_extensions import {source_id}` instead", context
+ f"Use `from typing_extensions import {source_id}` instead",
2622
+ context,
2623
+ code=codes.ATTR_DEFINED,
2624
)
2625
2626
"See https://mypy.readthedocs.io/en/stable/runtime_troubles.html#using-new-additions-to-the-typing-module",
2627
context,
2628
2629
2630
2631
def process_import_over_existing_name(
0 commit comments