Alex Waygood

Results 902 comments of Alex Waygood

> > The PEP hasn't been accepted yet. I recommend you join the discussion at https://discuss.python.org/t/pep-695-type-parameter-syntax/21646 if you feel strongly on the topic :) > > I don't think that...

Note that if you want a type that doesn't assume all the attributes you get on standard function objects, you can just use a callback protocol: ```python from typing import...

I'm afraid I've never touched stubgen, so I'm probably not the best reviewer, sorry! (I'm also not a maintainer, only a triager, so I wouldn't have the power to merge...

Possibly @hauntsaninja or @sobolevn if either of them has the time — but mypy is maintained by volunteers, so I can't make any promises :)

> It does feel like a type context issue, but I think @tmke8 may be right and this is [python/typeshed#10293](https://github.com/python/typeshed/issues/10293). Unfortunately, as the typeshed PR indicates, that issue may not...

I confirmed that with https://github.com/python/typeshed/issues/10293, the issue is resolved, so no mypy changes will be necessary here. The fix might not make it into mypy v1.5, but it will definitely...

As Shantanu stated, and as you agreed, any additional documentation on this topic should be contributed to https://github.com/python/typing. As that is a different repo, maintained by a different (albeit overlapping)...

I can reproduce this, but importantly, this **doesn't crash the first time** you run mypy -- only the _second_ time you run mypy. (This indicates that it's probably something to...

> I can reproduce this, but importantly, this **doesn't crash the first time** you run mypy -- only the _second_ time you run mypy. (This indicates that it's probably something...

Should we also add an upper bound here? https://github.com/python/mypy/blob/e0b159e0bb6bd414d2999bfcecbb5432541ec3fd/setup.py#L231