Находки в опенсорсе: Python
@opensource_findings_python
738
subscribers
3
photos
88
links
Легкие задачки в опенсорсе из мира Python
Чат:
@opensource_findings_chat
Download Telegram
Join
Находки в опенсорсе: Python
738 subscribers
Находки в опенсорсе: Python
https://github.com/reagento/dishka/issues/360
#typing
#dishka
upd:
решено
✅
GitHub
Properly handle
typing
.TypeAliasType · Issue #360 · reagento/dishka
Since Python 3.12, new syntax for declaring TypeAlias is available: https://docs.python.org/3/library/
typing
.html#type-aliases. Currently dishka does not handle it: from dishka import Provider, Sco...
❤
5
👍
1
Находки в опенсорсе: Python
https://github.com/python/typeshed/issues/13421
#typing
#typeshed
upd:
решено
✅
GitHub
FieldDescriptor is missing has_presence · Issue #13421 · python/typeshed
typeshed/stubs/protobuf/google/protobuf/descriptor.pyi Line 158 in 57d7c43 def label(self): ... https://github.com/protocolbuffers/protobuf/blob/main/python/google/protobuf/descriptor.py#L743
😁
7
🥰
1
Находки в опенсорсе: Python
https://github.com/typeddjango/django-stubs/issues/2549
#typing
#django_stubs
upd:
решено
✅
GitHub
Missing coroutine support of django.contrib.auth.decorators · Issue #2549 · typeddjango/django-stubs
Bug report What's wrong Since Django 5.1 the django.contrib.auth.decorators login_required(), permission_required(), and user_passes_test() support wrapping async functions. django-stubs doesn&...
Находки в опенсорсе: Python
https://github.com/typeddjango/django-stubs/issues/2574
#typing
#django_stubs
upd:
решено
✅
GitHub
`BaseModelAdmin.get_inlines()` return type doesn't match `ModelAdmin.inlines` type · Issue #2574 · typeddjango/django-stubs
Bug report What's wrong In django-stubs/contrib/admin/options.pyi, we have that BaseModelAdmin.get_inlines() should return a list: class BaseModelAdmin(Generic[_ModelT]): # ... def get_inlines(...
👍
4
Находки в опенсорсе: Python
https://github.com/python/typeshed/issues/13644
#typing
#typeshed
GitHub
cachetools __wrapped__ · Issue #13644 · python/typeshed
cachetools.cached() adds a __wrapped__ attribute (by virtue of functools.update_wrapper) to bypass the cache, but mypy errors saying attribute is undefined