Stanislav Terliakov

Results 43 comments of Stanislav Terliakov

It doesn't reproduce with master. @sobolevn Do we need a minor/patch release for `django_stubs_ext` or is there something to wait for? This was added in #909 together with making `BaseFormSet`...

It is a completely unrelated issue. The initial problem was with generics: `BaseFormSet` got type arguments after django-stubs upgrade, but it was not reflected in `django_stubs_ext` PyPI version. What you're...

Also we do probably need second issue template for "Enhancement proposal", because people see "bug" as the only available option and choose it, thus making "bug" tag meaningless.

I'm sorry for a late response, have been a bit overloaded. I don't insist on this change which was introduced only for consistency. AFAIC, it was initially decided not to...

(disclaimer: it was my commit) Using `Iterable` was definitely a mistake, yes, it should have been `Mapping[str, File]`. I will revert this for now in #925 and use `MultiValueDict[str, UploadedFile]`...

@tony Wait, but `url` is not [documented](https://docs.djangoproject.com/en/4.1/topics/testing/tools/#testing-responses) among other attributes. Also it doesn't seem to be added [in code](https://github.com/django/django/blob/main/django/test/client.py#L814). Neither `HttpResponseBase` nor its subclasses (both `HttpResponse` and `FileResponse`) do have...

As long as this relates to redirect responses, and `client.get` cannot return specific response subclasses (since there is no way to know that statically), I suggest to `assert isinstance(response, HttpResponseRedirect)`...

I'm not sure that this is the same issue, but at least very similar. It would be great to allow omitting implementation in `if TYPE_CHECKING` block as well: ```python from...

`extend-generics` is a good solution for general case. But... Would the heuristic "subscript expression in parent classes list" work? I agree that it can cause a false positive (below), but...

@erictraut Could you explain what you mean? `_T` is bound in `__init__`, but ends up in `foo` and `bar` annotation. `foo` and `bar` can be accessed outside of `__init__`, ant...