[issue46082] type casting of bool
New submission from aziz : >>> st = "True" >>> bool(st) True >>> st = "False" >>> bool(st) True >>> >>> stk = "False" >>> bool(stk) True >>> eval(stk) False -- components: 2to3 (
[issue38364] inspect.iscoroutinefunction / isgeneratorfunction / isasyncgenfunction can't handle partialmethod objects
Jameel Al-Aziz added the comment: I've recently ran into this via unittest.mock.patch.object. Mocking an asynchronous partial method returns MagicMock and not AsyncMagicMock, causing some pretty hard to debug failures. -- nosy: +me3 ___ P