|
You are here |
www.pmatiello.me | ||
| | | | |
florimond.dev
|
|
| | | | | A memo on implementing parametrized decorators whose default behavior doesn't require empty parentheses. | |
| | | | |
hackycode.com
|
|
| | | | | The Problem I was recently working on a project and decided to use Tortoise ORM. I appreciated the small footprint, ease of use, and the first class async support. However, I was disappointed to find that it didn't support parameter hints when creating an instance of a model. The IDE only shows **kwargs when creating a Tortoise ORM model instance Working Towards a Solution Libraries like PyDantic and msgspec already support this feature, so I knew it must be possible. | |
| | | | |
simeonfranklin.com
|
|
| | | | | Simeon Franklin - Web Developer | |
| | | | |
treyhunner.com
|
|
| | | If you're switching between Python 2 and Python 3, you might think that Python 2's xrange objects are pretty much the identical to Python ... | ||