Anders Kaseorg

Results 386 comments of Anders Kaseorg

> Unfortunately. it looks like #24 doesn't actually _prevent_ the `logging.error` call if the `err_func` is passed, so it doesn't address the issue. It could, actually: since `error_func` is called...

There are at least three problems here: 1. Because we use `pexpect` rather than `subprocess` to run `nix` in a TTY, `nix` prints terminal color escape sequences, which we then...

For projects that use `coverage` as a library (such as test runners), it would be better if the type annotations worked with standard mypy and didn’t require a custom fork.

Still waiting for a maintainer to look at this very simple bug fix (3 lines plus tests). Here’s a sample from the actual buggy change that Prettier wanted to apply...

This was actually one of the issues that motivated CPython 3.9’s switch from an LL(1) parser to a PEG parser (https://github.com/python/cpython/issues/56991#issuecomment-1093555153, [PEP 617](https://peps.python.org/pep-0617/)). See also #2759.

Here’s a complete minimal reproducible test case in ~20 lines. Note that `bad.py` and `good.py` are _identical_, but they show different types from `reveal_type`. All that distinguishes them is that...

In my test case, during the first run of [`get_type_of_settings_attribute`](https://github.com/typeddjango/django-stubs/blob/6f9afd3cc9202a3d1147f78e53ef31ced2f03452/mypy_django_plugin/transformers/settings.py#L23-L49) (for `bad.py`), `module.names` is ``` SymbolTable( AUTH_USER_MODEL : Gdef/Var (my_settings.AUTH_USER_MODEL) : builtins.str INSTALLED_APPS : Gdef/Var (my_settings.INSTALLED_APPS) MY_LIST : Gdef/Var (my_settings.MY_LIST)...

@PIG208 Here’s my example as a failing pytest case: #1159.

We could represent an anonymous `TypedDict` with an empty string for the name: `TypedDict("", {'foo': int, 'bar': bool})`. This already works at runtime.

> If your `TgzHandler` used chunked encoding, the `ProxyHandler` would pass on the transfer-encoding header but write a non-chunked response, breaking everything (I think; haven't tried it). That’s true. Perhaps...