mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-18 09:55:59 +08:00
The python2 unittest `assertIsInstance` and `assertNotIsInstance` stub did not allow using a tuple of classes, but that behavior is [in the documentation][1]. This commit copies the type stub for the isinstance built-in to the stubs for `assertIsInstance` and `assertNotIsInstance` I made this commit in response to @gvanrossum's request in python/typeshed#802 (which fixed this issue for python 3) that I apply the same fix to python 2. [1]: https://docs.python.org/2.7/library/unittest.html#unittest.TestCase.assertNotIsInstance