Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
new reporting
  • Loading branch information
hauntsaninja committed Apr 18, 2022
commit b4ee9d1bdf34415a30b261fa1469817ec795e40c
3 changes: 2 additions & 1 deletion mypy/stubtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -959,7 +959,8 @@ def verify_typealias(
stub_target = mypy.types.get_proper_type(stub.target)
if isinstance(runtime, Missing):
yield Error(
object_path, "is not present at runtime", stub_target, runtime, typealias_node=stub
object_path, "is not present at runtime", stub, runtime,
stub_desc=f"Type alias for {stub_target}"
)
return
if isinstance(stub_target, mypy.types.Instance):
Expand Down