From ad3e9ccc10cb1c48f687e6f8d91cb386f5da3bd7 Mon Sep 17 00:00:00 2001 From: "Bob \"Wombat\" Hogg" Date: Thu, 20 Oct 2022 16:22:59 -0400 Subject: [PATCH] Update migrating.rst --- docs/migrating.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/migrating.rst b/docs/migrating.rst index b4772534..e99af4cf 100644 --- a/docs/migrating.rst +++ b/docs/migrating.rst @@ -180,12 +180,12 @@ a function or method may be positional. Python 3 can do this using keyword-only arguments. What used to be written as:: @utils.positional(2) - def function1(arg1, arg2, arg3=None, arg4=None) + def function1(arg1, arg2, arg3=None, arg4=None): pass Should be written like this in Python 3:: - def function1(arg1, arg2, *, arg3=None, arg4=None) + def function1(arg1, arg2, *, arg3=None, arg4=None): pass However, ``positional`` remains available and works in both Python 2 and 3.