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.
isinstance
assert[Not]IsInstance
test_typing
1 parent f1e751e commit ea7c26eCopy full SHA for ea7c26e
Lib/test/test_typing.py
@@ -2011,13 +2011,13 @@ def test_callable_instance_type_error(self):
2011
def f():
2012
pass
2013
with self.assertRaises(TypeError):
2014
- self.assertIsInstance(f, Callable[[], None])
+ isinstance(f, Callable[[], None])
2015
2016
- self.assertIsInstance(f, Callable[[], Any])
+ isinstance(f, Callable[[], Any])
2017
2018
- self.assertNotIsInstance(None, Callable[[], None])
+ isinstance(None, Callable[[], None])
2019
2020
- self.assertNotIsInstance(None, Callable[[], Any])
+ isinstance(None, Callable[[], Any])
2021
2022
def test_repr(self):
2023
Callable = self.Callable
0 commit comments