|
|
|
|
|
by zbentley
2 days ago
|
|
> It's fundamentally unfair that Django gets to use aspects of the language other tools can't You can just ... not typecheck parts of your code. All of these tools are gradual, since Python's much too dynamic to encompass everything. Falling back to runtime "I know how this works" dynamism isn't a sin, it just requires a little care. Add restrictions (typed wrappers, verbosity/limitations a la dataclass_transform) at the boundaries where people make frequent mistakes, and move on with your life. |
|