Skip to content

Commit

Permalink
fix(python): dereference values returned from Kernel.ainvoke (#3847)
Browse files Browse the repository at this point in the history
Currently, calling an async method via the Python runtime results in an `ObjRef` being returned, rather than an instance of the desired object.

Applying the `@_dereferenced` decorator to `Kernel.ainvoke`, similar to what is already done for `sinvoke`, fixes the problem.

Fixes #3620

---

By submitting this pull request, I confirm that my contribution is made under the terms of the [Apache 2.0 license].

[Apache 2.0 license]: https://www.apache.org/licenses/LICENSE-2.0
  • Loading branch information
jpantzlaff authored Nov 23, 2022
1 parent c49820e commit 5643c50
Show file tree
Hide file tree
Showing 3 changed files with 176 additions and 153 deletions.
18 changes: 18 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -1504,6 +1504,24 @@
"contributions": [
"bug"
]
},
{
"login": "jpantzlaff",
"name": "John Pantzlaff",
"avatar_url": "https://avatars.githubusercontent.com/u/33850400?v=4",
"profile": "https://github.com/jpantzlaff",
"contributions": [
"code"
]
},
{
"login": "TomBonnerAtDerivitec",
"name": "Tom Bonner",
"avatar_url": "https://avatars.githubusercontent.com/u/83637254?v=4",
"profile": "https://github.com/TomBonnerAtDerivitec",
"contributions": [
"bug"
]
}
],
"repoType": "github",
Expand Down
Loading

0 comments on commit 5643c50

Please sign in to comment.