Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/typeddjango/django-stubs

PEP-484 stubs for Django
https://github.com/typeddjango/django-stubs

cache_page should be Optional[float] . (#851)

* cache_page can use None .

* Apply black

ab50fb987604445d13285bf4a21511428da951ff authored over 2 years ago by Joon Hwan 김준환 <[email protected]>
get_cache_key can have multiple httprequest types. (#852)

* Update cache.pyi

* Apply black

319ab7f9f752b73cedf01f6acd41532478a92eeb authored over 2 years ago by Joon Hwan 김준환 <[email protected]>
Bump pytest from 7.0.0 to 7.0.1 (#850)

Bumps [pytest](https://github.com/pytest-dev/pytest) from 7.0.0 to 7.0.1.
- [Release notes](htt...

017ac1ce85bed37342963cc80d656203415d94a3 authored over 2 years ago by dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Fix return type of MigrationRecorder.applied_migrations() (#793)

Matches return type of MigrationLoader.applied_migrations, which reads from here.

bf84546b9e9358a39993792722571f854f177d83 authored over 2 years ago by Jacob Walls <[email protected]>
DatabaseClient: add missing class methods and reflect Django 3.2 refactor (#846)

* DatabaseClient: add missing class method `settings_to_cmd_args_env` and add missing arg to `ru...

3eab36a5c4af0500e2d66e7e4e958112c904fb28 authored over 2 years ago by Kevin Marsh <[email protected]>
Bump pytest from 6.2.5 to 7.0.0 (#845)

Bumps [pytest](https://github.com/pytest-dev/pytest) from 6.2.5 to 7.0.0.
- [Release notes](htt...

01a31d2fd52f9f8fab7c5d209ddb65c3a70b528e authored over 2 years ago by dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Correct return type of get_commands() (#838)

According to the docstring for this function, "the instantiated module can be placed in the dict...

74083c9f8a827b13acd96cf9f5fd1513e15853d1 authored over 2 years ago by Rob Percival <[email protected]>
Bump black from 21.12b0 to 22.1.0 (#836)

Bumps [black](https://github.com/psf/black) from 21.12b0 to 22.1.0.
- [Release notes](https://g...

8843acde3e71bd4819a8e09b2094eb10fd5315af authored over 2 years ago by dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
`Model.__init__` supporting same typing as assigment (#835)

* `Model.__init__` supporting same typing as assigment

* Update mypy_django_plugin/django/con...

8aae836a26f05dc0e8eedaa30b9bb16b2f5e0a86 authored over 2 years ago by Petter Friberg <[email protected]>
Attempt to fix 'INTERNAL ERROR using annotate'. (#753)

KeyError: "Failed qualified lookup: '_AnyAttrAllowed' (fullname =
'django._AnyAttrAllowed')."
...

c556668d7aeb73a9934b2666ace9b975cbc557bb authored over 2 years ago by Seth Yastrov <[email protected]>
Export Datasource, Driver from gdal (#797)

28d6dc992c9c76e8fdcc428afe952dad1bf95ff3 authored over 2 years ago by Cory Dolphin <[email protected]>
Make SomeModel._default_manager return a BaseManager[SomeModel] instead of BaseManager[Model] (#817)

* _default_manager has more specific type for TypeVars

* remove unnecessary # type: ignore

...

73290597f876438374f224bf83a747a1bf041180 authored over 2 years ago by emma-blossom <[email protected]>
Add object_list to BaseListView (#833)

While `object_list` isn't defined at construction, `BaseListView.get()`
sets it when handling a...

060dc3b41abb47ec9b6e3039f4bbe69676cbf795 authored over 2 years ago by Maarten ter Huurne <[email protected]>
Allow *args to be Any for generic views (#831)

5d3768e593e3c5ac30f6da3063492ee6c787e566 authored over 2 years ago by rolandcrosby-check <[email protected]>
Fix .filter-kwargs lookup crash during cached runs (#828)

* Fix .filter-kwargs lookup crash during cached runs

* Update mypy_django_plugin/lib/helpers....

515e382d4a5eaa938e1949852df6349d69c132df authored over 2 years ago by Petter Friberg <[email protected]>
Reuse reverse managers instead of recreating (#825)

220f0e4cf09df170427bd83ee63f7cbe84f223f5 authored over 2 years ago by Petter Friberg <[email protected]>
Notify when Manager.from_queryset happens inside model class body (#824)

* Refactor to more easily support additional config options

* Notify when Manager.from_querys...

edec5a1c99a784208d5d8ce78237016cdaa1c54f authored over 2 years ago by Petter Friberg <[email protected]>
Bump pre-commit from 2.16.0 to 2.17.0 (#823)

Bumps [pre-commit](https://github.com/pre-commit/pre-commit) from 2.16.0 to 2.17.0.
- [Release ...

140bb38a79453e6f292c75e6c179e3ae6eccfe1e authored over 2 years ago by dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Delete FUNDING.yml

c04201c859e9c185d8f88feff00a115d9778f6ee authored almost 3 years ago by Nikita Sobolev <[email protected]>
Add FUNDING.yml and drop python3.6

5bbe353e92e33557d3770079e9f8eaf464c8d68e authored almost 3 years ago by sobolevn <[email protected]>
Update project to use mypy 931 (#819)

27e5908762e651c352a73a9b46611f958a6b31ab authored almost 3 years ago by Aleksander Vognild Burkow <[email protected]>
Fix suggested changes from #820 (#821)

a9e41a8ba97820cb6be7d85083dce23cab3ba2c1 authored almost 3 years ago by Petter Friberg <[email protected]>
Set custom queryset methods as manager attrs instead of method copies (#820)

Instead of copying methods over from a QuerySet passed to a basemanager
when invoking '<BaseMan...

99f28387fb6c07322229aae2c166c9b613b8251e authored almost 3 years ago by Petter Friberg <[email protected]>
Fix extra_context argument type in admin views (#816)

The `extra_context` argument to `ModelAdmin.changeform_view`,
`add_view`, `change_view`, `chang...

1da693ebffdd3be68bfc64ad838dabd8f5b8febf authored almost 3 years ago by rolandcrosby-check <[email protected]>
Allow Iterable[Iterable[Any]] as args_generator argument to format_html_join (#722)

* Allow List[Tuple[Any]] as args_generator argument to format_html_join

format_html_join's ar...

3c1e9e388425853859c112eafa008f4f5ea877f4 authored almost 3 years ago by rolandcrosby-check <[email protected]>
Bump pytest-mypy-plugins from 1.9.2 to 1.9.3 (#815)

Bumps [pytest-mypy-plugins](https://github.com/TypedDjango/pytest-mypy-plugins) from 1.9.2 to 1....

4cdf8a8d39a4b31003d2a94040224c27d3248420 authored almost 3 years ago by dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Fix annotation of ModelAdmin.get_object (#812)

* Fix annotation of ModelAdmin.get_object

The type annotation in django-stubs indicated that ...

7701957e4f5fac437b6b027a40e5aaeb26b87a5a authored almost 3 years ago by rolandcrosby-check <[email protected]>
Bump requests from 2.27.0 to 2.27.1 (#807)

Bumps [requests](https://github.com/psf/requests) from 2.27.0 to 2.27.1.
- [Release notes](http...

fafb200e9084cbd7603a1ebba95bfb6a46626e43 authored almost 3 years ago by dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Allow expressions in UniqueConstraint (#806)

* Allow expressions in UniqueConstraint

* Use ellipsis

* And for fields

118f50307cd29b8c836cd882f7a8ee2f7f8aa82d authored almost 3 years ago by Tom Carrick <[email protected]>
Change return type of queryset.bulk_update to int (#683)

- the change was made in the commit https://github.com/django/django/commit/cd124295d882e13cff55...

3761c16c511672e088bf3f6a23c25ff97781fb3c authored almost 3 years ago by Abhyudai <[email protected]>
Add typing to mypy plugin (#804)

c65e2c48dbc2c8c01f35197162a7eb2121bd7b50 authored almost 3 years ago by Gergely Kalmár <[email protected]>
Update typecheck_tests.py

ed68fbc99f372bd6884433f44eb64748dfd4f228 authored almost 3 years ago by Nikita Sobolev <[email protected]>
Delete misspel.yml

9cad4fbfeb07a3f91b2c9ee6831618126ea5c941 authored almost 3 years ago by Nikita Sobolev <[email protected]>
Bump requests from 2.26.0 to 2.27.0 (#803)

Bumps [requests](https://github.com/psf/requests) from 2.26.0 to 2.27.0.
- [Release notes](http...

3a27d8bb91fae7efd017ce60144bd891a79fa325 authored almost 3 years ago by dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Fix type for templatetag (#801)

49bed6c28dd35af7a5096786d2f8f8ef7c1cbd1f authored almost 3 years ago by Carl Johan Hambro <[email protected]>
Update syndication Feed class (#800)

* Update syndication Feed class

* Fix typing

3b02222beba43bcb52313608926f0803dee597f3 authored almost 3 years ago by Gabriel Augendre <[email protected]>
Make geos.GEOSGeometryBase.equals_exact accept float (#796)

9483865284bfe199961085d52765a83270e84611 authored almost 3 years ago by Cory Dolphin <[email protected]>
Fix Feed.get_object signature (#798)

get_object's default implementation returns None but subclasses
are allowed to override this me...

1834242e46258d3e5bfef8d69fd41b4cf3953ba8 authored almost 3 years ago by Gabriel Augendre <[email protected]>
Rename `requirements.txt` file for dependabot to work

3b303480b37cec67fe7e7ad5282c3c1658e1339f authored almost 3 years ago by sobolevn <[email protected]>
Adds better `id` and `pk` handling (#791)

b883e192e49535d7bac91b7fd85c8b2d8ccf3e88 authored almost 3 years ago by Nikita Sobolev <[email protected]>
Set types for on_delete functions (#772)

Set types for on_delete functions so they can be provided as values to
the on_delete attribute ...

4a0dd04611dac7c7e08f7bcd4cbb9fbf3ec524d1 authored almost 3 years ago by w0rp <[email protected]>
Updates deps (#788)

* Updates deps

* Updates deps

feb0bfa4a6f27c6804c6ec7f6035e29480ca84e0 authored almost 3 years ago by Nikita Sobolev <[email protected]>
Replace `toml` with `tomli` (#787)

* Replace `toml` with `tomli`

* Replace `toml` with `tomli`

02a39f722d044ac4ad8ddc523b9939dfe420f3c1 authored almost 3 years ago by Nikita Sobolev <[email protected]>
Adds [email protected] support (#786)

* Adds [email protected] support

* Fixes CI

* Fixes CI

* Ignore new error for django4.0

* F...

b50a9077f816f666ea71e9e41e465f3d999cdd6b authored almost 3 years ago by Nikita Sobolev <[email protected]>
Updates deps, adds [email protected] compat, adds dependabot

e9b328a9354c085dec0c1fc8bb1f973f9e89ef40 authored almost 3 years ago by sobolevn <[email protected]>
Refs #774 (#777)

* Refs #774

* Update test_create.yml

eb80b949af1b99f257cb3107241453c83d978a4b authored almost 3 years ago by Nikita Sobolev <[email protected]>
Add Model._base_manager (#776)

1219d62b6a04097cec85446f0e96a313005d9f01 authored almost 3 years ago by Chris Beaven <[email protected]>
Update autoreload to Django 3.2 (#775)

* Update autoreload stub to Django 3.2

* Fix some subclass return types

* types for watchm...

daf6c659f05c00fa694ff48f745deaa97d52aac5 authored almost 3 years ago by Chris Beaven <[email protected]>
Fix the get_field type for Pyright (#773)

This PR fixes the type of get_field so it won't report errors in
Pyright's strictest type check...

059471101ca4f4b300f09cd43384c398d1e2a6df authored almost 3 years ago by w0rp <[email protected]>
Update signature for Django 3.1 Paginator (#770)

ccbbf86d0e56c29adc93165c7a48a9a1135ff8a7 authored almost 3 years ago by Vadim Safonov <[email protected]>
More accurate template.Parser parse_until type (#769)

69d4b1a86dc359d38a0c5ff6fed4e0dd9885abd9 authored almost 3 years ago by Chris Beaven <[email protected]>
Add more precise RunSQL, RunPython migration hints (#768)

6436a10d5a0f5c62114d0e30ef24a7faf4ce6e3e authored almost 3 years ago by Marti Raudsepp <[email protected]>
Add ValidationError type hints (#767)

79d34d6f46e7c24688fdb64de4b6a037dcf518a3 authored almost 3 years ago by Marti Raudsepp <[email protected]>
Fix `QuerySet.create` and `Manager.create` annotation since it doesn't accept `*args` (only `**kwargs`) (#762)

e5361f1e043f16363263319ed2de6b81bbb67ccd authored almost 3 years ago by Kevin Marsh <[email protected]>
Fixed the types in ManyToManyField according to their definition in Django. (#758)

593d04d6e9dd44089e823651e6c5b4af3956c2cc authored almost 3 years ago by Stanislav Mikhailov <[email protected]>
Fix BaseConnectionWrapper.execute_wrapper (#752)

This is a context manager, not an iterator.

Currently mypy will complain if it's used as docu...

a57ae4fc76c791774b9a953cc2b3244a226f23a1 authored almost 3 years ago by Sigurd Ljødal <[email protected]>
Add signature for Django 3.2 TimestampSigner (#751)

Django 3.2 introduced two new methods: `sign_object` and
`unsign_object` which can sign/unsign ...

331042d1c73e48adc3f7028c3887c0a2f7c66dac authored almost 3 years ago by David Cain <[email protected]>
Update MigrationExecutor stubs to use Sequence (#749)

There is no need for a specific List type here, using a higher type
works fine and allows more ...

b5c20100ffbca86338a29229f59d0de931bd767c authored almost 3 years ago by Avery Fischer (biggerfisch) <[email protected]>
Implement stubs for views.decorators.common.no_append_slash (#743)

48aaf3d2ace9c6e98ce602c4f1c44762c5641f29 authored almost 3 years ago by Petter Friberg <[email protected]>
Fix boundfield method parameters (#741)

640553dcd7d5bb61234409fb79904ee0ea9f857a authored almost 3 years ago by Chris Beaven <[email protected]>
Update send_mail recipient_list type from List[str] to Sequence[str] (#740)

95060b54c21d007f6b2a8d98c2f9e6ed1bedaed2 authored almost 3 years ago by Yukio Mizuta <[email protected]>
Adjust django.core.signing.dumps and loads key type. (#739)

An optional key can be provided to these functions.

09c3dc894b1a78fb5d106a12b996854dd58303e1 authored almost 3 years ago by Simon Charette <[email protected]>
fix `django.contrib.auth.models.Group.natural_key` no return type (#724)

9482f2f81c0fc8982c9220f3ee6647023b3f034b authored almost 3 years ago by 星 <[email protected]>
Add a definition for Storage.get_alternative_name (#732)

See: https://github.com/django/django/blob/f5802a21c401b92764a9f3e2886144f3c5d77573/django/core/...

676750e090a4ca046cfe6eb741f8ea246764a232 authored almost 3 years ago by Brian Helba <[email protected]>
Correct the type of FileField.storage (#731)

* Correct the type of FileField.storage

This instance property can't be a callable. Although ...

7c87c720adf27dc6024acef611e16ae9b567aa43 authored almost 3 years ago by Brian Helba <[email protected]>
Make AddRelatedManagers look for "objects" on parent model (#730)

* Add failing test for relation to model inheriting `objects`

Fails with:
```
pytest_mypy_p...

9938378e94c21b34c4a9425fb3d93a166f034b7d authored almost 3 years ago by Rob Percival <[email protected]>
Fixes CI (#734)

* Fixes CI

* Fixes CI

* Fixes CI

7ac33f3a283d017ae149ed567b57890f5b1a50ab authored almost 3 years ago by Nikita Sobolev <[email protected]>
update all path related operations to have more accurate types (#713)

fb125609818057dff8aad807637b3ca9cca5e194 authored about 3 years ago by Terence Honles <[email protected]>
fix typing on HttpResponse and StreamingHttpResponse (#712)

While the documentation for `HttpResponse` and `StreamingHttpResponse`
*says* `content` and `st...

799b41fe47cfe2e56be33eee8cfbaf89a9853a8e authored about 3 years ago by Terence Honles <[email protected]>
add `HashedFilesMixin.url` argument `force` (#714)

fb4d20475b204493853234f9e02813bbc991fe1c authored about 3 years ago by Terence Honles <[email protected]>
Add SmallAutoField (#710)

* Add SmallAutoField

* Test SmallAutoField presents as int

a1f3712c4334efa2cb461b727b673857c674d0e4 authored about 3 years ago by Craig <[email protected]>
Version [email protected] release

372b1340a096ee86e2a3b8148ae591bcc1232dc2 authored about 3 years ago by sobolevn <[email protected]>
Fix `BaseModelForm` not working with generic type parameter (#705)

Resolves: https://github.com/typeddjango/django-stubs/issues/703

6424e33a740523ea3276e9c0e046b6bac43fecc3 authored about 3 years ago by Eero Ruohola <[email protected]>
Add `typing-extension` as a direct dependency of `django-stubs-ext` (#707)

Needed, because `django-stubs-ext` generally has to specified as a
production dependency (to us...

b6d3373c345302685c2630d12cf681a465bb61ba authored about 3 years ago by Eero Ruohola <[email protected]>
Update bug.md

f98330356c663b9dddfe029d28c9968008098a4d authored about 3 years ago by Nikita Sobolev <[email protected]>
Version 1.9.0 release

a33d8a9e59613efaa6c37bfc8ae3b88e4c751f51 authored about 3 years ago by sobolevn <[email protected]>
Version 1.9.0 release

d6ccecdd73481128e68a0c86a819e704758deeee authored about 3 years ago by sobolevn <[email protected]>
Version 1.9.0 release

321284ac62313333c9f5895799b02d2d99282e10 authored about 3 years ago by sobolevn <[email protected]>
Version [email protected] release

a0f893ea3d422b39919294ee71cd9e55d00a9055 authored about 3 years ago by sobolevn <[email protected]>
Minor fixes to improve django-stubs (#695)

* Use `Sequence` instead of `Iterable` for `send_messages`.

According to the documentation
(...

0d8dd854422a1a1c8ce18a39c66a7fb86da65b4e authored about 3 years ago by PIG208 <[email protected]>
Add `py.typed` to package distribution of django_stubs_ext. (#694)

a6a81797d3b9e8f5f4ee535520b749a7da0c97fa authored about 3 years ago by PIG208 <[email protected]>
Fixes a broken link in CONTRIBUTING.md (#690)

8674c48c596b7e3eee8f7d51467e98c7f66fe2f3 authored about 3 years ago by PIG208 <[email protected]>
extend ProtectedError and RestrictedError stubs (#682)

types for their properties

44f7c25a4e533e37c2ca4ef80a067e0c5e1733cc authored about 3 years ago by Tim Nyborg <[email protected]>
Remove assertions for mypy builtins (#685)

696f39b58c9163abbb00705f22754eb5f6f15de4 authored about 3 years ago by Abhyudai <[email protected]>
Add tests for some queryset methods (#684)

01eecf901f5a3d2521b4c2d349fd95629fc1e5f5 authored about 3 years ago by Abhyudai <[email protected]>
Update type of BinaryField to include memoryview as well (#686)

695a7d71a7a228345bc068b8109c8027457b5887 authored about 3 years ago by Abhyudai <[email protected]>
Fix/673/from queryset then custom qs method (#680)

* Fix `MyModel.objects.filter(...).my_method()`

* Fix regression: `MyModel.objects.filter(......

8da8ab486232713da5bb3532e5f0252d0d4b8b1a authored about 3 years ago by Seth Yastrov <[email protected]>
Change PasswordResetForm.get_users() to return Iterable, not Iterator. (#678)

This matches the actual implementation in Django, where it only attempts
to use the result of g...

08a662ecb10714310722bdd5382fff88066a71ef authored about 3 years ago by Richard Xia <[email protected]>
Change PasswordResetForm.save() to accept HttpRequest, not WSGIRequest. (#679)

0d7c32f38e3b9f1a59cf66b022237df64a024990 authored about 3 years ago by Richard Xia <[email protected]>
Add @display to django.contrib.admin (#677)

The `display` decorator is defined in `django.contrib.admin.decorators`, but
isn't included in ...

51183231e036b7533ec4836d5ef91c9516821a46 authored about 3 years ago by Michael Williamson <[email protected]>
Add accepts method stub in HttpRequest (#676)

* Add accepts method to HttpRequest stubs

The accepts method (and dependencies) was missing i...

d29dacd64b722d94a8fc9b38ea93ed4f48c6f710 authored about 3 years ago by snmishra <[email protected]>
Add datetime to DateTimeField (#675)

* Add datetime to set_type of DateTimeField

`DateTimeField` was missing `datetime` as a valid...

ee51aa4bf8da3b26c651f08e9055aedc047c422e authored about 3 years ago by snmishra <[email protected]>
Fixes by misspell-fixer (#674)

Co-authored-by: sobolevn <[email protected]>

ee9c0d4a3222a2fe3ff9fcf90cbd7db408157cef authored about 3 years ago by github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
QuerySet.annotate improvements (#398)

* QuerySet.annotate returns self-type. Attribute access falls back to Any.

- QuerySets that h...

cfd69c0acc4bb3c282cab4a411b014afe280d359 authored about 3 years ago by Seth Yastrov <[email protected]>
Replace accepts expression as string (#671)

Fixes #503

c69e720dd86d28ed7a7ddb8034503fcc5e1db861 authored over 3 years ago by Tim Nyborg <[email protected]>
widen type of make_password and get_hasher parameters (#670)

* widen type of make_password's hasher

make_password will accept a subclass of BasePasswordHa...

2a9410f3b11e48747c907599d9b05866fc66f80d authored over 3 years ago by Tim Nyborg <[email protected]>
Add end-of-file-fixer hook to pre-commit (#668)

cc5d363cfaa9b1c317e064c5e80381ce6843d1fc authored over 3 years ago by Petter Friberg <[email protected]>
fix(BaseCache): corrected return type of get_many func (#666)

* fix(BaseCache): corrected return type of get_many func

* fix(basecache): made required changes

446589e133e99debbcbe0f17d9f974ff68c02dbd authored over 3 years ago by Abhishek Chaudhary <[email protected]>
Better linting config (#664)

* Better linting config

* Applies isort on django-stubs, only style changes

* Fixes black ...

d5e45db79bcea6d6f4f45eacca3a2fe6e125e2e3 authored over 3 years ago by Nikita Sobolev <[email protected]>
Adds more rules to mypy config, related #662 (#663)

* Adds more rules to mypy config, related #662

* Removes plugin.ini for mypy settings

* Fi...

552f2ffc0c2481b592b9f634c245c615acf48c7f authored over 3 years ago by Nikita Sobolev <[email protected]>