|
You are here |
adamj.eu | ||
| | | | |
nickdrozd.github.io
|
|
| | | | | Mypy is a typechecker for Python. It's not the official typechecker for Python. There is no official typechecker. But Mypy seems to be the official-est. I use it, and it's mostly pretty great. | |
| | | | |
bfontaine.net
|
|
| | | | | Tips and tricks in Python, Bash, Clojure and other languages/environments. | |
| | | | |
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. | |
| | | | |
kishstats.com
|
|
| | | Type hinting was added to the Python standard library starting in version 3.5. Python, being a dynamically typed language, does not enforce data types. Howev... | ||