Stanislav Terliakov

Results 43 comments of Stanislav Terliakov

Same here:( I was really upset when encountered this (on project supporting exactly python 3.8+). Should I submit a PR with README change (to state that it is compatible only...

Pyupgrade is great, but lacks one feature I really wanted to have for consistency in large package: `annotations` future should be imported in all files (after a couple failing CI...

Seems like I'm going to write my own hook for that: pyupgrade maintainer [recommends](https://github.com/asottile/pyupgrade/issues/618) using `reorder-python-imports`, but I prefer `isort` for a few reasons (I don't like one-per-line rule, although...

Wow, thank you! I wasn't aware about this feature.

CC: https://stackoverflow.com/questions/73866986/cannot-resolve-manager-type-when-using-django-polymorphic-with-mypy-django-stubs

Probably I misunderstand something, but it looks like unsafe code. `SingleObjectMixin.queryset` is a queryset to `get_object` from, it should be `QuerySet[Account]` (if it is "view listing transactions for account"). `MultipleObjectMixin.queryset`...

The initial reasoning was like the following: * `CreateView`: `object` is [set](https://github.com/django/django/blob/main/django/views/generic/edit.py#L135=) only after `form_valid()` call. So it is available only for a small subset of standard methods: `post` and...

I can confirm that happens with `mypy 0.940+dev` (latest from their github) too. Also both `qs.values(...)` and `qs.values_list(...)` are affected. Adding full traceback: ``` ./app/models/treatment.py:683: error: INTERNAL ERROR -- Please...

It's fixed by removing `django-stubs` and `django_stubs_ext` and installing from git instead of PyPi.

I'm really confused. I can't reproduce with that setup either, however, it is exactly layout of test project I created. Also I cannot reproduce it with exactly that project (haven't...