Max Muoto
Max Muoto
`celery/utils/text.py` is now annotated: https://github.com/celery/celery/pull/8107
@jxnl If this is something you're interested in, happy to put up a PR fixing these Pyright issues, and adding the checks.
> i this a replacement for mypy... our mypy is pretty broken rn... Yeah, it's a MyPy alternative.
> lets try it since mypy is broken right now! Sounds great, I'll get to work on a PR!
> The general problem here is that, when looking at `BaseClass[ModelB]`, we don't have a great way to know whether `[Model]` is a generic annotation or an actual subscript access...
I'm assuming not, but does it support wildcards? For example, if you wanted to treat all of your Django models as valid generics you might want to do `extend-generics =...
CC: @rdemarco-xero
Following up. Maybe if @manishT72 or @Raghunath-S-S-J are able to take a look.
> @max-muoto Thanks for making the fix, we really appreciate your support. We will approve and merge this PR when the next Python SDK version will be published. Thanks!
@sydney-runkle I think this issue is worth closing out. `type` statements don't actually store the metadata necessary for this to work. Let's say I have have this annotation. ```python from...