commit | 2085bd0877e17ad4d98a4586d5eabb6faecbb190 | [log] [tgz] |
---|---|---|
author | Serhiy Storchaka <storchaka@gmail.com> | Sat Jun 01 11:00:15 2019 +0300 |
committer | GitHub <noreply@github.com> | Sat Jun 01 11:00:15 2019 +0300 |
tree | c25b20d33ebf4d64a28abb8591f4ff7acf90614c | |
parent | 4a686504eb2bbf69adf78077458508a7ba131667 [diff] [blame] |
bpo-37116: Use PEP 570 syntax for positional-only parameters. (GH-13700)
diff --git a/Doc/library/contextlib.rst b/Doc/library/contextlib.rst index 017a87a..73b24e5 100644 --- a/Doc/library/contextlib.rst +++ b/Doc/library/contextlib.rst
@@ -637,7 +637,7 @@ from contextlib import ExitStack class Callback(ExitStack): - def __init__(self, callback, *args, **kwds): + def __init__(self, callback, /, *args, **kwds): super(Callback, self).__init__() self.callback(callback, *args, **kwds)