You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2019/11/12 07:15:52 UTC

[GitHub] [pulsar] Jennifer88huang commented on a change in pull request #5625: [Issue 5618] [docs]Correct python example

Jennifer88huang commented on a change in pull request #5625: [Issue 5618] [docs]Correct python example
URL: https://github.com/apache/pulsar/pull/5625#discussion_r345045470
 
 

 ##########
 File path: site2/docs/functions-develop.md
 ##########
 @@ -235,20 +234,20 @@ In order to use this class in Pulsar Functions, you have two options:
 2. You can create your own SerDe class. The following is an example.
 
   ```python
-  from pulsar import SerDe
+from pulsar import SerDe
 
-  class TweetSerDe(SerDe):
-      def __init__(self, tweet):
-          self.tweet = tweet
+class TweetSerDe(SerDe):
+    def __init__(self):
+        pass
 
 Review comment:
   Got it, thanks for your confirmation.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services