- 
                Notifications
    
You must be signed in to change notification settings  - Fork 3
 
Open
Description
Proposal
Hey there, do we want to use type hints in rows for types?
Example:
from upstash_qstash import Client
from qstash_tokens import QSTASH_TOKEN
from upstash_qstash.schedules import CreateScheduleRequest
client = Client(QSTASH_TOKEN)
schedules = client.schedules()
params: CreateScheduleRequest = {
            "cron": "* * * * *",
            "destination": "https://py-qstash-testing.requestcatcher.com",
            "body": {"hello": "world"},
            "headers": {
                "content-type": "application/json",  # This is the default, but you can override it
            },
        }
res = schedules.create(params)So, by doing that params: CreateScheduleRequest we can give a really good experience to the user and he can make sure is passing the right params to the method.
Also, he can have a quick check with the VSCode autocomplete feature.
And see if some key is optional or required as well.
If we want to do it, I can work on that 😄
Metadata
Metadata
Assignees
Labels
No labels

