Anton Agestam

Results 134 comments of Anton Agestam

@layday StrLimit doesn't need to be a class, it can be a subscribable object. @samuelcolvin If we want to support both upper and lower bounds, perhaps `StrLimit[:63]` makes sense as...

typeguard mainly deals with runtime type checking of function arguments. To check whether arguments are compatible for a function call, we want to know if they are of the correct...

@abelcheung Oh cool, structured output from mypy directly seems like a much more viable approach.

I'm taking an initial look at this. Just setting up and familiarizing myself with the project etc, so I don't want to raise any expectations still, but thought I'd let...

@apirogov Initial reaction is it feels unintuitive for this to be inherited, ie I think C shouldn't use its docstring. I'll give this some further thought and come back with...

I'll close this for now until there's a more clear idea about how to move forward with this.

@Jetrom17 Please don't tell me how to spend my personal time. I was informing about something that's broken, and that's as far as my contribution extends.

@sobolevn Cool, I did not know about that! I think I'm running into a variance issue though. I setup a minimal Django project to test with, and testing with this...

@leamingrad Ah, I didn't realize they should be reversed to each other. Very nicely explained! 👍 (Sorry for off topic): Feel free to jump in on [phantom-types/discussions](https://github.com/antonagestam/phantom-types/discussions) if you'd feel...

I created a new PR: https://github.com/typeddjango/django-stubs/pull/573 It does make it possible to narrow a field's type, but I found no other way to do that than to use `cast()`. I...