Alex Waygood

Results 902 comments of Alex Waygood

I'm not sure, this feels like intentional behaviour to me (https://github.com/astral-sh/ruff/pull/11414#issuecomment-2108336700) -- one of the motivating reasons for FA102 is to enable UP037 to automatically remove quotes from your annotations...

@inoa-jboliveira, what's your reason for enabling FA102 in the first place if you find the `from __future__ import annotations` import ugly? The purpose of this check isn't to ensure that...

> Of course the purpose is to check if the code is compatible older verions, it says so in the docs: yeah, sorry, I got quite mixed up here 🙃...

On the other hand, maybe typeshed_client is right: maybe this is an invalid stub. In `stdlib/collections/abc.pyi`, we do `from _collections_abc import __all__ as __all__`. That implies that `_collections.abc.__all__` is being...

@nineteendo, thanks for helping review PRs by other contributors and letting them know about our usual policies and workflow. However, please try to avoid using ALL CAPS when addressing other...

> Is there something I need to do differently for python 3.12, or is this a bug in the python stdlib? This is a CPython bug

The fix will be included in 3.13.0b2 and 3.12.4. I think both should be coming pretty soon.

> If we stick with mypy's behavior, we have no way of properly typing enums that include both members and non-member attributes. The way we've always done this in typeshed...

The `cast()` idea is okay; I could get behind that. --- Alternative idea, slightly more blue-sky: Python 3.11 added the `enum.member` and `enum.nonmember` decorators. I wonder whether we could repurpose...