diff options
author | Mark Dickinson <mdickinson@enthought.com> | 2021-08-23 08:15:49 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-23 08:15:49 (GMT) |
commit | 6082bb5addab93755ab6e2bd2ed6021b391e10d1 (patch) | |
tree | ef109d492632072d919a7ebeb2ce89342a2babdb /Lib/test/test_typing.py | |
parent | eec340ea3af27887fcaac4029ebdee99f3713bff (diff) | |
download | cpython-6082bb5addab93755ab6e2bd2ed6021b391e10d1.zip cpython-6082bb5addab93755ab6e2bd2ed6021b391e10d1.tar.gz cpython-6082bb5addab93755ab6e2bd2ed6021b391e10d1.tar.bz2 |
bpo-24234: implement complex.__complex__ (GH-27887)
Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
Diffstat (limited to 'Lib/test/test_typing.py')
-rw-r--r-- | Lib/test/test_typing.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_typing.py b/Lib/test/test_typing.py index 3bd5894..84521ee 100644 --- a/Lib/test/test_typing.py +++ b/Lib/test/test_typing.py @@ -1533,11 +1533,11 @@ class ProtocolTests(BaseTestCase): def test_supports_complex(self): - # Note: complex itself doesn't have __complex__. class C: def __complex__(self): return 0j + self.assertIsSubclass(complex, typing.SupportsComplex) self.assertIsSubclass(C, typing.SupportsComplex) self.assertNotIsSubclass(str, typing.SupportsComplex) |