[arvados] updated: 2.6.0-14-g7afaea0c5
git repository hosting
git at public.arvados.org
Fri Apr 14 14:08:06 UTC 2023
Summary of changes:
sdk/python/discovery2pydoc.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
via 7afaea0c59c4a2da152de652870f9b0e457f74cc (commit)
from d63d6ba645b8e34cf9d248bd0407fab0b9ef6534 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 7afaea0c59c4a2da152de652870f9b0e457f74cc
Author: Brett Smith <brett.smith at curii.com>
Date: Fri Apr 14 10:06:23 2023 -0400
18799: Mark self parameters as POSITIONAL_OR_KEYWORD
On Python 3.7, if you mark a parameter POSITIONAL_ONLY, it will generate
a signature that uses the positional-only `/` syntax, *even though*
Python 3.7 cannot parse that syntax (it was added in Python 3.8, PEP 570).
POSITIONAL_OR_KEYWORD avoids that problem, and is probably more accurate
anyway.
Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith at curii.com>
diff --git a/sdk/python/discovery2pydoc.py b/sdk/python/discovery2pydoc.py
index 57ae31613..ad7606145 100755
--- a/sdk/python/discovery2pydoc.py
+++ b/sdk/python/discovery2pydoc.py
@@ -200,7 +200,7 @@ class Method:
def signature(self) -> inspect.Signature:
parameters = [
- inspect.Parameter('self', inspect.Parameter.POSITIONAL_ONLY),
+ inspect.Parameter('self', inspect.Parameter.POSITIONAL_OR_KEYWORD),
*self._required_params,
*self._optional_params,
]
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list