Skip to content

Commit

Permalink
Drop exclamation marks
Browse files Browse the repository at this point in the history
  • Loading branch information
dandavison committed Aug 7, 2024
1 parent 1651397 commit c270eb0
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docs/develop/python/message-passing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ class GreetingWorkflow:
self.approver_name: Optional[str] = None
self.language = Language.English
self.greetings = {
Language.English: "Hello, world!",
Language.Chinese: "你好,世界!",
Language.English: "Hello, world",
Language.Chinese: "你好,世界",
}

@workflow.run
Expand Down Expand Up @@ -347,12 +347,12 @@ As an example of an async handler, in the following code sample the Update handl
async def call_greeting_service(to_language: Language) -> Optional[str]:
await asyncio.sleep(0.2) # Pretend that we are calling a remote service.
greetings = {
Language.Arabic: "مرحبا بالعالم!",
Language.Chinese: "你好,世界!",
Language.English: "Hello, world!",
Language.French: "Bonjour, monde!",
Language.Hindi: "नमस्ते दुनिया!",
Language.Spanish: "¡Hola mundo!",
Language.Arabic: "مرحبا بالعالم",
Language.Chinese: "你好,世界",
Language.English: "Hello, world",
Language.French: "Bonjour, monde",
Language.Hindi: "नमस्ते दुनिया",
Language.Spanish: "Hola mundo",
}
return greetings.get(to_language)

Expand Down

0 comments on commit c270eb0

Please sign in to comment.