You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Raise custom error when builtin symbol is missing (#2062)
A common point of confusion people have when working on the mypy
codebase is forgetting to include the appropriate builtin fixture to
their unit tests. In particular, not including a fixture (or the right
fixture) can result in a cryptic exception when the code attempts to
look up the builtin symbol and fails.
This commit adds a check to the most common failure point and raises a
custom exception when it detects a builtin symbol is missing (which
should never happen when running mypy normally).
0 commit comments