Alex Waygood

Results 902 comments of Alex Waygood

I'd agree with @JelleZijlstra that, as a general rule, you should link to the same thing only once per paragraph. If the paragraph is long enough that you start wondering...

> [ ] [604](http://peps.python.org/604) Allow writing union types as X | Y: 3.10 https://docs.python.org/3/library/stdtypes.html#union-type might do pretty well for that one

I can reproduce using `typing.TypedDict` and `typing.NotRequired` on the CPython `main` branch (3.12), so I assume it reproduces on 3.11 using the stdlib `typing` module as well.

> one approach would be to have a table with four columns That sounds good to me. I'd vote for us using a [list-table](https://sublime-and-sphinx-guide.readthedocs.io/en/latest/tables.html#list-table-directive); they're much easier to maintain than...

After some investigation at the PyCon sprints, we determined that this is caused by a CPython bug where `__class__` is removed from the class dictionary in some -- but not...

I bisected which commit during Python 3.11 development fixed the CPython bug (git bisect says the "first bad commit", but it's really the "first good commit"): ``` commit d7163bb35d1ed46bde9affcd4eb267dfd0b703dd (HEAD)...

https://github.com/python/cpython/commit/d7163bb35d1ed46bde9affcd4eb267dfd0b703dd didn't really _fix_ the underlying CPython bug. It actually just made `f_locals` lazy, so it means that the bug is no longer reproducible by a no-op trace function, as...

> ### Module Resolver > > The module resolver remains mostly unchanged, although I did some renaming. > > **`Module`** > > > My initial feeling is that what you...

> Would you mind listing some of the "odd" examples and explaining why they're odd? In all three comments I linked to above, the ecosystem check either surfaced new lint...

Possibly mypy requires the `type: ignore` comment to be on the first line of the whole import statement due to the fact that `ast.alias` nodes in Python's AST (as provided...