[jira] [Created] (FLINK-17690) Python function wrapper omits docstr

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (FLINK-17690) Python function wrapper omits docstr

Shang Yuanchun (Jira)
Igal Shilman created FLINK-17690:
------------------------------------

             Summary: Python function wrapper omits docstr
                 Key: FLINK-17690
                 URL: https://issues.apache.org/jira/browse/FLINK-17690
             Project: Flink
          Issue Type: Improvement
          Components: Stateful Functions
            Reporter: Igal Shilman


Statefun Python SDK has a connivance bind method, that wraps a functions.

The [wrapper|https://github.com/apache/flink-statefun/blob/master/statefun-python-sdk/statefun/core.py#L182] would omit the docstr of the wrapper function. A common practice would be to use [https://docs.python.org/3/library/functools.html#functools.wraps]

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)