ch
Feedback
Находки в опенсорсе: Python

Находки в опенсорсе: Python

前往频道在 Telegram

Легкие задачки в опенсорсе из мира Python Чат: @opensource_findings_chat

显示更多
969
订阅者
无数据24 小时
-47
-630
帖子存档
🚀 New issue to wemake-services/django-modern-rest by @sobolevn 📝 Add `slotscheck` to the CI (#68) There's an amazing tool called https://github.com/ariebovenberg/slotscheck We use __slots__ in this project by default. So, we would love to test their defition. List of things to do: • Add slotscheck to test deps • Add the configuration to pyproject.toml • Add the call to Makefile This should be a really small task for several minutes :) #help_wanted #good_first_issue #dependencies #github_actions sent via relator

🚀 New issue to wemake-services/django-modern-rest by @sobolevn 📝 Send issues to the tg channel (#66) Subscribe to https://t.me/opensource_findings_python if you want to get issues with help wanted status. #help_wanted sent via relator

🚀 New issue to ag2ai/faststream by @lesnik512 📝 Bug: async api route returns 500 if broker is set by set_broker (#2588) Hi and thank you for this great framework! Describe the bug async api route returns 500 if broker is set by method set_broker How to reproduce
async def test_bug() -> None:
    app = faststream.asgi.AsgiFastStream(
        asyncapi_path="/docs/"
    )
    app.set_broker(RedisBroker())

    with TestClient(app=app) as test_client:
        response = test_client.get("/docs/")
        assert response.status_code == 500

    app2 = faststream.asgi.AsgiFastStream(
        RedisBroker(),
        asyncapi_path="/docs/"
    )

    with TestClient(app=app2) as test_client:
        response = test_client.get("/docs/")
        assert response.status_code == 200
#bug #good_first_issue sent via relator

https://github.com/wemake-services/django-modern-rest/issues/47 Супер простая задача: добавить TypedDict для типизации kwarg'ов. #django_modern_rest #typing

🚀 New issue to ag2ai/faststream by @aleksandrtikhonov 📝 Bug: missing error logs when broker initialize with argument log_level=logging.DEBUG (#2585) Describe the bug Missing ERROR logs when broker initialize with argument log_level=logging.DEBUG How to reproduce Include source code:
from faststream import FastStream
from faststream.confluent import KafkaBroker, KafkaRouter
from pydantic import BaseModel

broker = KafkaBroker("localhost:9092", log_level=logging.DEBUG)
router = KafkaRouter()
broker.include_router(router)
app = FastStream(broker)


class Suka(BaseModel):
    suka_id: int


@router.subscriber("test")
async def suking(suka: Suka) -> None:
    print(suka)
1. Send a message to a topic that does not match the expected model Suka. Expected behavior See error logs(error pydantic serializtion) in the console Observed behavior Error logs are missing. Environment faststream-0.6.0 Additional context Provide any other relevant context or information about the problem here. #good_first_issue #bug sent via relator

Сделать msgspec опциональной зависимостью. Сейчас она используется только для парсинга json, однако, она может не собраться по какой-то причине. Нам нет никакой сложности сделать модуль с нативным json для парсинга, если ее нет. Задача на несколько часов. https://github.com/wemake-services/django-modern-rest/issues/43 #django-modern-rest

🚀 New issue to Lancetnik/FastDepends by @Lancetnik 📝 bug: PEP 695 support (#217) Currently, we doesn't support PEP 695 type X syntax. So, code below raises an error
from typing import Annotated

from fast_depends import Depends, Provider, inject

provider = Provider()

def real_func() -> int:
    return 1

type Dep = Annotated[int, Depends(real_func)]  # doesn't work

@inject(dependency_overrides_provider=provider)
def func(dependency: Dep) -> int:
    return dependency

assert func() == 1
But, the same code with Dep: TypeAlias works fine #bug #good_first_issue sent via relator

🚀 New issue to reagento/relator by @Sehat1137 📝 Add mypy for static type checking (#9) Summary: Integrate mypy static type checker into the project to detect type-related errors before runtime and improve code reliability Proposed Actions: • Add mypy.ini with basic configuration. • Add mypy to development dependencies (e.g., requirements-dev.txt). • Start with a minimal configuration, ignoring missing imports for third-party libraries. • Update CI/CD pipeline (e.g., GitHub Actions) to run mypy . command. • Consider enabling the --strict flag for comprehensive type checking. #good_first_issue sent via relator

🚀 New issue to reagento/relator by @Sehat1137 📝 Add Ruff for linting and formatting (#8) Summary: Integrate the Ruff linter and formatter into the project to ensure consistent code style and catch common errors. 1. Add ruff.toml to configure rules 2. Add Ruff to the project's dev dependencies in requirements-dev.txt 3. Update the CI/CD pipeline (e.g., GitHub Actions) to run ruff check #good_first_issue sent via relator

Я знаю, тут любят интересные задачки. Поэтому вот вам - необходимо затащить поддержу PEP 695 в FastDepends (и в FastStream транзитивно) https://github.com/Lancetnik/FastDepends/issues/217

ради интереса закидываю сложную (относительно), но подъемную задачу из CPython. https://github.com/python/cpython/issues/139817 #cpython #compiler

🚀 New issue by @Sehat1137 📝 Test issue (#2493) Test sending
print("hello world")
• q • w • e #526 1. q 2. w 3. e #good_first_issue sent via telegram-notifier

Сделать проверку корректности заливки types-* из typeshed. Нужно находить пакеты в опциональных группах. https://github.com/typeshed-internal/stub_uploader/issues/190 #typing #stubtest_uploader #typeshed

🚀 New issue by @sobolevn 📝 Test issue (#3539) I am testing telegram notifications.
print(1)
#rule_request #help_wanted sent via telegram-notifier

https://github.com/python/cpython/issues/133210#issuecomment-3370872328 поправить test_pydoc с --without-docstrings флагом. #cpython #tests

удалить deprecated litestar.contrib.repository (туда его!) https://github.com/litestar-org/litestar/issues/4307 #litestar