Alex Waygood

Results 902 comments of Alex Waygood

> Should we also clearly state that `NoReturn` is deprecated in favor of `Never` to mirror the wording [in the docs](https://docs.python.org/3/library/typing.html#typing.NoReturn)? The docs don't actually state that `NoReturn` is deprecated....

> Use a .pyi file, but put some special marker code in the .pyi file that indicates "look inline". `__py_typed__ = True`? So, if type checkers see a `.pyi` file...

Thanks @erictraut for considering this issue, and for opening this discussion. For the context of others reading this thread, this originally came up in relation to the following code snippet:...

Note that, in contrast to `self` for instance methods, it does appear to be genuinely impossible to pass `cls` as a keyword argument to class methods: ```pycon >>> class Foo:...

> If you want to use the symbols in `a`, then use an `import a` statement. If you want to use the symbols in `a.b`, then use `import a.b`. If...

> * Ensure the expected behavior here is compliant with the proposed behavior in #2386 `/Users/alexw/.pyenv/shims` is on my `PATH` -- does that satisfy this point? It looks like using...

``` 7964bfbb2bed50a5c7b0650a7b6799a66503a33a is the first bad commit commit 7964bfbb2bed50a5c7b0650a7b6799a66503a33a Author: konsti Date: Wed Mar 13 12:51:14 2024 +0100 Move architecture and operating system probing to Python (#2381) ``` 7964bfbb2bed50a5c7b0650a7b6799a66503a33a by...

Explicitly passing the Python version using the `--python` flag also seems to fail: ``` % python3.11 Python 3.11.8 (main, Feb 15 2024, 19:32:18) [Clang 15.0.0 (clang-1500.1.0.2.5)] on darwin Type "help",...