diff options
author | Dong-hee Na <donghee.na92@gmail.com> | 2017-11-15 18:30:59 (GMT) |
---|---|---|
committer | Yury Selivanov <yury@magic.io> | 2017-11-15 18:30:59 (GMT) |
commit | 762b9571c9c8c6b036f1bf90140a1d030b3f9a01 (patch) | |
tree | 8aacee139aaa773259cc43300b09e911038b7380 /Lib/test/test_inspect.py | |
parent | f8a4c03ede6048022f60a58d5a21b278b78a8a16 (diff) | |
download | cpython-762b9571c9c8c6b036f1bf90140a1d030b3f9a01.zip cpython-762b9571c9c8c6b036f1bf90140a1d030b3f9a01.tar.gz cpython-762b9571c9c8c6b036f1bf90140a1d030b3f9a01.tar.bz2 |
bpo-32018: Fix inspect.signature repr to follow PEP 8 (#4408)
Diffstat (limited to 'Lib/test/test_inspect.py')
-rw-r--r-- | Lib/test/test_inspect.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_inspect.py b/Lib/test/test_inspect.py index e64215d..13a86b1 100644 --- a/Lib/test/test_inspect.py +++ b/Lib/test/test_inspect.py @@ -2875,12 +2875,12 @@ class TestSignatureObject(unittest.TestCase): def foo(a:int=1, *, b, c=None, **kwargs) -> 42: pass self.assertEqual(str(inspect.signature(foo)), - '(a:int=1, *, b, c=None, **kwargs) -> 42') + '(a: int = 1, *, b, c=None, **kwargs) -> 42') def foo(a:int=1, *args, b, c=None, **kwargs) -> 42: pass self.assertEqual(str(inspect.signature(foo)), - '(a:int=1, *args, b, c=None, **kwargs) -> 42') + '(a: int = 1, *args, b, c=None, **kwargs) -> 42') def foo(): pass |