Subtype checking micro-optimization by JukkaL · Pull Request #19384 · python/mypy
Speeds up self-check by about 0.6%. The assertion is very hot, and the original version always created a set, which is slow.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters