Alex Waygood

Results 100 issues of Alex Waygood

### Description The following pattern is fairly common for specialised enum classes that provide additional attributes on enum members. It's used for `http.HTTPStatus` in the stdlib, and in 3.11, it's...

**Bug Report** Given a stub like so: ```python from abc import ABCMeta class Y(metaclass=ABCMeta): ... class Z: foo: type[Y] ``` And a runtime like so: ```python from abc import ABCMeta...

bug
topic-stubtest

### Description As has been pointed out in https://github.com/python/typeshed/pull/7475, the current typeshed definitions for various async methods in the stub for `typing` are problematic. Until recently, these were all "synchronous"...

Fixes #12494. ### Description At runtime, most objects in an enum class statement are automatically converted by the enum module into members of the enumeration. However, if an object has...

If I understand correctly, stubsabot has logic that _should_ mean that it auto-updates PRs (providing no manual changes have been made to the PR branch by maintainers). That part of...

project

DO NOT merge this until https://github.com/python/mypy/issues/13220 is fixed. Reverts #8373 and #8399.

deferred

A few days ago, I had a great conversation with @kkirsche offline about some ways we can improve our communications with contributors. One of the things that came up is...

project
help wanted

This PR improves mypy's understanding of the mypy codebase, and reduces the number of false positives if you run the selfcheck with `--warn-unreachable`. --- As stated in this docstring here,...

The 7.4.0 release of pytest broke mypy because we were using some undocumented, private API that was removed. Ideally we'd stop using the private API, but nobody seems to remember...

Minimal repro in PowerShell: ```ps PS C:\Users\alexw> uv venv env Using Python 3.12.1 interpreter at C:\Users\alexw\AppData\Local\Programs\Python\Python312\python.exe Creating virtualenv at: env PS C:\Users\alexw> env\scripts\activate (env) PS C:\Users\alexw> uv pip install black...

bug
windows