-
Notifications
You must be signed in to change notification settings - Fork 1
Add type hints to Python SDK examples #2
Copy link
Copy link
Open
Labels
good first issueGood for newcomersGood for newcomerssdkSDK implementations (Python, TypeScript, Go)SDK implementations (Python, TypeScript, Go)
Description
Summary
The Python examples in examples/python_sdk/ work but lack type hints. Adding type hints improves readability and enables IDE support for developers using LDP.
What to do
- Add type hints to all functions in:
examples/python_sdk/ldp_delegate.pyexamples/python_sdk/ldp_client.pyexamples/python_sdk/multi_delegate_routing.py
- Use
TypedDictordataclassfor LDP message structures - Ensure the examples still run correctly after changes
Acceptance criteria
- All function signatures have type hints
- LDP data structures use
TypedDictordataclass -
python ldp_delegate.pyandpython ldp_client.pystill work
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomerssdkSDK implementations (Python, TypeScript, Go)SDK implementations (Python, TypeScript, Go)