https://github.com/wemake-services/wemake-python-styleguide/issues/3458
#python #wemake_python_styleguide #ast
#python #wemake_python_styleguide #ast
GitHub
Forbid "fat" finally · Issue #3458 · wemake-services/wemake-python-styleguide
Rule request Allow finally block to have simple content only. It can contain few lines of code, but it shouldn't contain untrivial logic, which can not be understand very quickly at code readin...
😭5❤2
https://github.com/wemake-services/wemake-python-styleguide/issues/2340
#wemake_python_styleguide #ast
#wemake_python_styleguide #ast
GitHub
Detect leaking `for` loops in `ClassDef` and `Module` · Issue #2340 · wemake-services/wemake-python-styleguide
Right now we can have two problems: class Some(object): for x in [1, 2]: print(x) print(Some.x) # oups, will show you `2` and with modules: # some.py for x in [1, 2]: print(x) # __main__ import som...
👍3❤1
https://github.com/Lancetnik/FastDepends/issues/186
Ветка – https://github.com/Lancetnik/FastDepends/tree/feat/optional-pydantic
В ветке уже добавлен красный тест, подтверждающий багу – https://github.com/Lancetnik/FastDepends/commit/3033b06f4a805f4687d0beb4cc9bbdea83889943
#bug #fastdepends
Ветка – https://github.com/Lancetnik/FastDepends/tree/feat/optional-pydantic
В ветке уже добавлен красный тест, подтверждающий багу – https://github.com/Lancetnik/FastDepends/commit/3033b06f4a805f4687d0beb4cc9bbdea83889943
#bug #fastdepends
GitHub
Pydantic validation error overriding dependencies in 3.0.0a9 · Issue #186 · Lancetnik/FastDepends
Hi, I'm using fast_depends to override injected dependencies in tests. However, in 3.0.0a9 I'm getting validation errors if the original dependency had dependencies of its own, even though ...
👍1
https://github.com/python/cpython/issues/136567
В CPython DSL для описания байткода есть разные виды префиксов, и некоторые из них забыли задокументировать.
#docs #cpython
В CPython DSL для описания байткода есть разные виды префиксов, и некоторые из них забыли задокументировать.
#docs #cpython
👍5
Добавить потерянное экранирование при генерации mermaid диаграм
https://github.com/reagento/dishka/issues/500
https://github.com/reagento/dishka/issues/500
GitHub
mermaid render failure · Issue #500 · reagento/dishka
There are some syntax error in mermaid render result. To reproduce: from functools import partial from typing import Callable import dishka.plotter from dishka import Provider from dishka import Sc...
👍3
https://github.com/wemake-services/wemake-python-styleguide/issues/3493
#ast #wemake_python_styleguide
#ast #wemake_python_styleguide
GitHub
Make `WPS222` configurable · Issue #3493 · wemake-services/wemake-python-styleguide
Currently we use MAX_CONDITIONS: Final = 4 as a constant in constants.py. There's no way to configure MAX_CONDITIONS. However, there might be projects where 5 or even 8 might be reasonable. So,...
👎1
https://github.com/wemake-services/wemake-python-styleguide/issues/3500
#ast #wemake_python_styleguide
#ast #wemake_python_styleguide
GitHub
Allow set comprehensions in `WPS335` · Issue #3500 · wemake-services/wemake-python-styleguide
We don't allow list and set to be used as iterable parts of for, because we only allow tuples there. We need to allow SetComp in for iterable: 118:22 WPS335 Found incorrect `for` loop iter type...
Не самая простая задача, но прикольная: https://github.com/wemake-services/wemake-python-styleguide/issues/3501
Подойдет тем, кто уже делает не первый PR :)
#ast #wemake_python_styleguide
Подойдет тем, кто уже делает не первый PR :)
#ast #wemake_python_styleguide
GitHub
False positive for `WPS529` · Issue #3501 · wemake-services/wemake-python-styleguide
Code like this def func(**kwargs): if 'a' in kwargs: assert 'a_kwargs' not in kwargs else: kwargs['a'] = other( **kwargs.pop('a_kwargs', {}), ) raises WPS529 I don&#...
Изи ишью: 5 минут, зашли и вышли
Нужно просто в тестовых клиентах отфильтровывать тех подписчиков, что еще не запущены.
Нужно подправить все места включения
https://github.com/ag2ai/faststream/issues/2053
#faststream
Нужно просто в тестовых клиентах отфильтровывать тех подписчиков, что еще не запущены.
Нужно подправить все места включения
self.broker.subscribers
и добавить соответствующий тестhttps://github.com/ag2ai/faststream/issues/2053
#faststream
GitHub
Bug: Subscribers registered in runtime do not clean up after close · Issue #2053 · ag2ai/faststream
I am trying to use the new dynamic subscription from https://github.com/airtai/faststream/releases/tag/0.5.0 (see point number 9). While adding the dynamic subscription works well, I have issues cl...