Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .changesets/1792607797-a1ef7f0c.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
id: 1792607797-a1ef7f0c
features:
- docs
targets:
- pythonv2
type: fix
bump: patch
description: make the Resource Management README snippet valid Python
author: LukasParke
date: "2026-10-21"
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@ The `{{$sdkClassName}}` class implements the context manager protocol and regist
def main():
{{templateString "usage/init.stmpl" $syncCallContext | indentPresent 4}}
# Rest of application here...
pass


# Or when using async:
async def amain():
{{templateString "usage/init.stmpl" $asyncCallContext | indentPresent 4}}
# Rest of application here...
pass
```
{{- end }}
{{- else if eq .Global.Config.AsyncMode "split"}}
Expand All @@ -41,12 +43,14 @@ The `{{$sdkClassName}}` and `Async{{$sdkClassName}}` classes implement the conte
def main():
{{templateString "usage/init.stmpl" $syncCallContext | indentPresent 4}}
# Rest of application here...
pass


# Or when using async:
async def amain():
{{templateString "usage/init.stmpl" $asyncCallContext | indentPresent 4}}
# Rest of application here...
pass
```
{{- end }}
{{- end }}
2 changes: 2 additions & 0 deletions zSDKs/sdk-pythonv2/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading