r/Python • • Nov 25 '22

Intermediate Showcase defer in python!

https://github.com/dankeyy/defer.py

stupid but works lol hope you like it

300 Upvotes

62 comments sorted by

View all comments

Show parent comment

1

u/Dasher38 Nov 26 '22

I see, it's basically like the argparse "type" parameter. Isn't it convenient ? If you want to get the input unchanged you can always use str isn't it ?

3

u/Jonno_FTW hisss Nov 26 '22

If you want a string don't put a type hint.

It's similar to argparse, except it supports discord.py custom classes as well.