Use more PEP 570 syntax in the documentation. (GH-13720)

This commit is contained in:
Serhiy Storchaka 2019-06-01 11:38:24 +03:00 • committed by GitHub
parent 2085bd0877
commit 70c5f2ae6e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 19 additions and 19 deletions

View file

@ -554,8 +554,8 @@ desired effect in a number of ways.
5) Or bundle up values in a class instance::
class callByRef:
def __init__(self, **args):
for (key, value) in args.items():
def __init__(self, /, **args):
for key, value in args.items():
setattr(self, key, value)
def func4(args):