Seth Yastrov
2dec3b4325
Merge branch 'master' into queryset_in_bulk
2019-02-22 08:16:48 +01:00
Seth Yastrov
3b8c5d08e8
QuerySet.in_bulk fixes.
...
- Made id_list of type Sequence[Any], rather than Any, according to mkurnikov's review.
- Removed **kwargs.
- Made returned Dict keys of type Any rather than int or str as it depends on the provided field's type.
- Added test with examples from Django docs.
2019-02-22 08:13:31 +01:00
Maxim Kurnikov
eaee3d390f
fix HttpResponse stubs by removing AnyStr
2019-02-22 03:22:11 +03:00
Maxim Kurnikov
b686751f19
fix some stubs
2019-02-22 02:55:49 +03:00
Maxim Kurnikov
73ea682356
rework django.views
2019-02-22 01:50:52 +03:00
Seth Yastrov
cda703a94b
QuerySet.in_bulk returns Dict with values of correct model type.
...
- The keys are still Union[int, str] which doesn't cover all
possibilities, but it's not possible to cover without handling this in
the plugin, because the type of the Dict keys are dynamic depending on
which value for field_name you pass in.
2019-02-20 20:51:43 +01:00
Maxim Kurnikov
2bd018951b
forms, generic views fixes
2019-02-20 22:24:26 +03:00
Maxim Kurnikov
2d3b5492f0
fix form errors in CI
2019-02-20 21:24:49 +03:00
Maxim Kurnikov
194258ab8e
Merge pull request #23 from syastrov/better-types-for-transaction-atomic
...
Add better typings plus test for transaction.atomic.
2019-02-20 21:12:14 +03:00
Maxim Kurnikov
116aa2c539
clean up forms
2019-02-20 15:22:46 +03:00
Seth Yastrov
67c99434e5
Add better typings plus test for transaction.atomic.
...
- All cases are handled, including bare decorator (@transaction.atomic).
- Decorated function's signature is preserved when type-checking.
2019-02-20 06:40:22 +01:00
Maxim Kurnikov
5d8cdbcf29
fix integer set type
2019-02-20 02:38:45 +03:00
Rune Steinnes
36662896bc
*args and **kwargs changed from 'object' to 'str' and 'any' in post(), put() and get()
2019-02-19 12:48:07 +01:00
Rune Steinnes
41f283552a
Replaced WSGIRequest with http.HttpRequest in mixin:LoginRequiredMixin
2019-02-19 11:16:27 +01:00
Maxim Kurnikov
9d60b472df
fix *args, **kwargs for views.generic.base
2019-02-18 15:45:01 +03:00
Maxim Kurnikov
f980311be0
finish strict_optional support, enable it for typechecking of django tests
2019-02-18 00:52:56 +03:00
Maxim Kurnikov
e9f9202ed1
preliminary support for strict_optional
2019-02-17 18:07:53 +03:00
Maxim Kurnikov
6763217a80
some strict optional fixes
2019-02-16 21:28:37 +03:00
Maxim Kurnikov
a08ad80a0d
fix star import parsing for settings
2019-02-14 03:16:07 +03:00
Maxim Kurnikov
82de0a8791
lint
2019-02-13 20:00:42 +03:00
Maxim Kurnikov
79ebe20f2e
add more test folders
2019-02-13 19:44:25 +03:00
Maxim Kurnikov
587c2c484b
more accurate types for from_queryset()
2019-02-13 17:55:50 +03:00
Maxim Kurnikov
2720b74242
add proper generic support for get_object_or_404/get_list_or_404, fixes #22
2019-02-13 14:52:10 +03:00
Maxim Kurnikov
16a983152a
CharField can receive ints
2019-02-12 04:08:30 +03:00
Maxim Kurnikov
9eb95fbab3
add BaseManager.create() typechecking
2019-02-12 03:54:48 +03:00
Maxim Kurnikov
d05e739d75
fix ci
2019-02-11 01:29:30 +03:00
Maxim Kurnikov
faefdcca5b
fix ci
2019-02-11 01:12:59 +03:00
Maxim Kurnikov
643f852775
enable two more test folders
2019-02-10 04:41:54 +03:00
Maxim Kurnikov
6b7507206a
fix couple edge cases with __init__
2019-02-10 04:32:27 +03:00
Maxim Kurnikov
916df1efb6
add Model.__init__ typechecking
2019-02-08 17:16:03 +03:00
Maxim Kurnikov
dead370244
fix ci
2019-02-07 20:58:12 +03:00
Maxim Kurnikov
d4cb729c93
rework settings, add loading of the django.conf.global_settings, cleanups
2019-02-07 19:13:39 +03:00
Maxim Kurnikov
f7b586f038
ci should be good now
2019-02-07 01:43:34 +03:00
Maxim Kurnikov
3fb3bbcf19
fix values_list
2019-02-07 01:01:05 +03:00
Maxim Kurnikov
191496ed72
enable some test folders, bunch of fixes
2019-02-07 00:08:05 +03:00
Maxim Kurnikov
d43cb1fcd7
fixes
2019-02-06 22:20:12 +03:00
Maxim Kurnikov
2559901ff3
more test folders
2019-02-06 20:56:44 +03:00
Maxim Kurnikov
0c121d65d1
fixes
2019-02-06 20:46:05 +03:00
Maxim Kurnikov
d18fc0bf5f
enable 6 more test folders
2019-02-06 14:29:42 +03:00
Maxim Kurnikov
c534e75aaf
remove Meta entries
2019-02-06 13:22:53 +03:00
Maxim Kurnikov
af30bb6c4a
Merge pull request #15 from HyreAS/more-fields
...
More fields
2019-02-05 16:46:57 +03:00
Maxim Kurnikov
dbc9b49867
add test_runner/lookup test folders
2019-02-05 16:41:28 +03:00
Aleksander Vognild Burkow
4ea4c3eddd
Ignore external psycopg2 types
2019-02-05 14:23:06 +01:00
Maxim Kurnikov
e4d2b795e3
fix ci
2019-02-05 16:09:42 +03:00
Maxim Kurnikov
69d4ccaf54
fixes, add some testing folders
2019-02-04 19:31:37 +03:00
Aleksander Vognild Burkow
08bf5660bf
Add additional django field __get__ types
...
These are taken from the corresponding
django/contrib/postgres/fields/ranges.py file.
2019-02-04 17:08:00 +01:00
Aleksander Vognild Burkow
7819165e42
Add decimal field typings
2019-02-04 17:08:00 +01:00
Maxim Kurnikov
f5135dac9f
expressions
2019-02-03 20:41:27 +03:00
Maxim Kurnikov
2a6a0120a9
black reformat
2019-02-03 20:09:27 +03:00
Maxim Kurnikov
59b4d2e849
add custom_lookups, custom_managers test folders
2019-02-03 20:06:13 +03:00