Skip to content

Commit a61b97f

Browse files
authored
EN #4926 fix parser to include kwargs when parsing function params (#83)
1 parent c263e9f commit a61b97f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

polyapi/parser.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,7 @@ def visit_FunctionDef(self, node: ast.FunctionDef):
465465
# Parse docstring which may contain param types and descriptions
466466
self._extract_docstring_from_function(node)
467467
function_args = [arg for arg in node.args.args]
468+
function_args.extend(node.args.kwonlyargs)
468469
docstring_params = deployable["types"]["params"]
469470
parsed_params = []
470471
# parse params from actual function and merge in any data from the docstring

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ requires = ["setuptools>=61.2", "wheel"]
33

44
[project]
55
name = "polyapi-python"
6-
version = "0.3.10.dev1"
6+
version = "0.3.10.dev2"
77
description = "The Python Client for PolyAPI, the IPaaS by Developers for Developers"
88
authors = [{ name = "Dan Fellin", email = "dan@polyapi.io" }]
99
dependencies = [

0 commit comments

Comments
 (0)