Maxim Kurnikov
1419b144d9
wip
2020-03-15 00:58:11 +03:00
Maxim Kurnikov
0b1507c81e
wip
2020-02-02 03:12:32 +03:00
Maxim Kurnikov
a01d58462e
add two new as_manager tests
2020-01-05 17:55:16 +03:00
Maxim Kurnikov
e5b61dc499
fix tests
2020-01-05 08:18:43 +03:00
Maxim Kurnikov
0a92c89d41
lint fixes
2020-01-04 19:09:50 +03:00
Maxim Kurnikov
356a5881e7
allow manager classes nested inside model classes
2020-01-04 17:56:05 +03:00
Maxim Kurnikov
90617bc76a
QuerySet.as_manager() support
2020-01-04 16:52:13 +03:00
Maxim Kurnikov
13e40ab4a1
refactor, fix method copying
2020-01-04 13:36:11 +03:00
Nikita Sobolev
7ba578f6b2
Refactors validators types ( #284 )
...
* Update __init__.pyi
* It should not fail right now 🤔
* Refactor validators a bit
* Fixes CI
* Update __init__.pyi
2019-12-21 15:44:26 +03:00
Maksim Kurnikov
cb123de105
BaseManager.from_queryset(): properly resolve methods for QuerySet defined in another file ( #282 )
...
* BaseManager.from_queryset() from another file
* only anal_type per argument
* add resolve for return_type
* fix mypy errors
* remove leftover comment
2019-12-18 20:01:20 +03:00
Maksim Kurnikov
38135f2d1f
Merge pull request #281 from mkurnikov/update-deps
...
Update dev deps, mypy to 0.760
1.4.0
2019-12-18 00:13:11 +03:00
Maxim Kurnikov
998b659749
bump to 1.4.0
2019-12-18 00:03:29 +03:00
Maxim Kurnikov
72f69e1c5e
remove unused ignores
2019-12-18 00:02:55 +03:00
Maxim Kurnikov
d666ecd36f
update dev deps, mypy to 0.760
2019-12-17 23:50:50 +03:00
Maksim Kurnikov
c1af26c027
handle return value of anal_type properly ( #280 )
2019-12-17 23:36:44 +03:00
Maxim Kurnikov
3c3dfcbc9f
bump to 1.3.3
1.3.3
2019-12-17 19:20:27 +03:00
Maksim Kurnikov
1196336e3b
Perform anal_type for arguments and return type when copying methods to another class ( #279 )
...
* Found the reproducible test case
* fix import resolution for method copy
* remove irrelevant parts from test
* fix mypy errors
Co-authored-by: Boger <kotvberloge@gmail.com >
2019-12-17 19:19:31 +03:00
Maksim Kurnikov
665f4d8ea1
Make related manager inherit from objects of related model ( #278 )
...
* related manager inherits from objects of related model
* fix test typechecking
* lint
2019-12-17 19:06:27 +03:00
Dima Boger
b3ed9e4827
Add inheritance QuerySet support for from_queryset ( #275 )
...
* Add testcase for queryset inheritance
* Add PoC
* Add condition for stop to looping over mro
* Change harcoded queryset class name to constant from fullnames
2019-12-16 20:16:41 +03:00
Marti Raudsepp
fb1593630a
Expand stubs for django.core.management.color ( #276 )
...
Many attributes were previously missing; 'DEBUG' and 'INFO' attributes
were never supported by Django.
2019-12-16 20:16:21 +03:00
JR Heard
031d42a75d
update ChoiceField's choices kwarg's annotation ( #273 )
...
per the [docs](https://docs.djangoproject.com/en/3.0/ref/forms/fields/#choicefield ), `choices` is:
> Either an iterable of 2-tuples to use as choices for this field, or a callable that returns such an iterable.
2019-12-14 09:30:50 +03:00
Maxim Kurnikov
f7e1cfc6c7
bump to 1.3.2
1.3.2
2019-12-13 23:55:08 +03:00
Maksim Kurnikov
d0c25e3bce
Allow to run from_queryset() with BaseManager, Manager ( #271 )
...
* allow to run from_queryset() with BaseManager, Manager
* fix tests
2019-12-13 20:16:33 +03:00
Maksim Kurnikov
1c31e71ffc
enable 'model_forms' for tests typechecking ( #270 )
2019-12-13 13:30:21 +03:00
Dmitry Groshev
6b3b6be3c1
add .model field to _BaseQuerySet ( #268 )
2019-12-12 21:50:59 +03:00
Maksim Kurnikov
5832605053
Remove warning about unsupported expression types ( #266 )
...
* remove warning about unsupported expression for _meta.get_field()
* lint
v1.3.1
2019-12-12 08:20:52 +03:00
Maksim Kurnikov
31e795016f
values(), values_list() with ManyToManyField ( #267 )
2019-12-12 08:09:47 +03:00
Maxim Kurnikov
0cba3f9fd6
bump to 1.3.1
2019-12-12 08:03:47 +03:00
Maksim Kurnikov
f02050911f
various annotation improvements ( #258 )
2019-12-12 06:42:29 +03:00
henribru
e8e6fca78c
Fix return type of refresh_from_db ( #244 )
2019-12-12 05:36:11 +03:00
Maksim Kurnikov
ade48b6546
Add support for BaseManager.from_queryset() ( #251 )
...
* add support for BaseManager.from_queryset()
* cleanups
* lint fixes
2019-12-12 05:35:56 +03:00
Maksim Kurnikov
b8f29027d8
Suppress IncompleteDefnException on final_iteration and continue with the loop ( #260 )
...
* suppress IncompleteDefnException on final_iteration
* lint
2019-12-12 01:04:24 +03:00
Hannes Ljungberg
eba3f6cb15
Update django.contrib.auth with Django 3.0 compatibility ( #256 )
...
* Add support for BaseBackend
* Add User.get_user_permissions
* Add support for UserManager.with_perm
* Add support for reset_url_token
2019-12-11 01:10:10 +03:00
Maksim Kurnikov
5a45544e76
Optimize tests typechecking script ( #255 )
...
* skip whole Django repo for tests typechecking
* lint
2019-12-11 00:52:08 +03:00
Maksim Kurnikov
8c2de7da56
add a number of django test directories for typecheck ( #257 )
2019-12-11 00:51:32 +03:00
Maksim Kurnikov
d43c6dc7e2
Merge pull request #254 from mkurnikov/better-force-text-types
...
Better types for django.utils.encoding
2019-12-10 23:36:38 +03:00
Maxim Kurnikov
f7e2109e06
add @overload clauses to smart_text, smart_bytes, force_bytes
2019-12-10 23:22:23 +03:00
Hannes Ljungberg
cea62abf5a
Add support for database functions introduced in 3.0 ( #253 )
...
* Add support for hash database functions
* Add support for Sign
2019-12-10 22:36:11 +03:00
Hannes Ljungberg
3b69ec6a72
Add support for RangeBoundary ( #252 )
2019-12-10 22:09:55 +03:00
Seth Yastrov
7e794534c0
Better type for force_text using overloads/Literal
...
- If a str is passed in, it returns a str.
- If strings_only = True and a "protected type" is passed in, returns that type.
- Default if it doesn't match the overloads: return a str
2019-12-10 21:28:40 +03:00
Hannes Ljungberg
f5f33b061d
Add support for exclusion constraints ( #249 )
2019-12-10 20:50:28 +03:00
Ran Benita
58b26fdbd3
Improve TestCase.assertNumQueries type ( #250 )
2019-12-10 19:37:13 +03:00
Youssef Moussaoui
9ca79c24a2
Move BLANK_CHOICE to django.db.models.fields ( #242 )
2019-12-08 08:19:24 +03:00
Maxim Kurnikov
540e28f4c6
bump version to 1.3.0
v1.3.0
2019-12-06 23:37:19 +03:00
Maksim Kurnikov
4ac43c6ed6
Add Django 3.0 testing to CI ( #246 )
...
* add Django 3.0 testing to CI
* remove importlib_metadata usage
* conditionally load choices module for tests
2019-12-06 23:36:24 +03:00
Maksim Kurnikov
cadd6c963b
fix model's on_cascade= parameter for test, update to latest gdal ( #247 )
2019-12-06 03:40:55 +03:00
Konstantin Alekseev
041754f817
Fix smtp backend open ( #240 )
2019-12-01 20:46:11 +03:00
Konstantin Alekseev
c0c5d1e588
Cleanup EmailMessage types ( #208 )
...
* Cleanup EmailMessage types
* Typecheck email module tests.
2019-12-01 17:14:16 +03:00
Maksim Kurnikov
f824003cc4
remove unused ignore pattern ( #239 )
2019-12-01 00:09:36 +03:00
Youssef Moussaoui
58f1833cab
Declare is_relation and related_model on Field ( #230 )
2019-11-30 22:40:22 +03:00