Maksim Kurnikov
f02050911f
various annotation improvements ( #258 )
2019-12-12 06:42:29 +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
Christopher Sabater Cordero
7b74a6944a
Add a few missing types to the stubfiles ( #214 )
...
* Add types to stub files.
* Fix black and flake8 errors.
2019-11-12 18:25:31 +03:00
Seth Yastrov
83f11a0fc6
Add Tags.translation to stub ( #226 )
2019-11-12 18:23:29 +03:00
Maxim Kurnikov
dceb075152
fix annotation for BaseCommand.handle() ( #201 )
2019-10-05 21:36:41 +03:00
Maxim Kurnikov
4d4b0003bd
Fix Paginator properties mistyped as Callables ( #193 )
...
Co-authored-by: Nick Sweeting <git@sweeting.me >
2019-09-28 22:16:20 +03:00
Maxim Kurnikov
963d50c717
add linting stubs with flake8-pyi and check for unused imports ( #186 )
2019-09-25 02:20:23 +03:00
Wlises R
0c3e06e875
Solve issue 154: Fix wrong type for size in File. ( #156 )
2019-09-06 09:16:19 +03:00
Maxim Kurnikov
dce0c0e930
Add 'django.core.cache.backends.memcached' stubs ( #141 )
2019-08-24 18:35:42 +03:00
Maxim Kurnikov
c91a6d1d5b
replace None annotations with Optional[] around
2019-08-24 16:35:07 +03:00
Swen Kooij
7bf1664307
Add properties to runserver.Command ( #135 )
2019-08-16 15:44:49 +03:00
Nikita Sobolev
7f476057b0
Refactors bad default values, now using Ellipsis ( #132 )
...
* Refactors bad default values, now using Ellipsis
* Blacked
2019-08-13 15:01:15 +03:00
Nikita Sobolev
d31512854a
Merge pull request #124 from K0Te/fix-email-annotations
...
Fix EmailMessage.attachements parameter annotation.
2019-08-12 18:46:10 +03:00
Oleg Nykolyn
bb08212b20
Fix EmailMessage.attachements parameter annotation.
2019-08-01 22:02:18 +03:00
Maxim Kurnikov
2c001fd8a7
cleanups
2019-07-24 13:38:49 +03:00
Maxim Kurnikov
fc9843bea6
add support for _meta.get_field() typechecking
2019-07-24 13:38:49 +03:00
Maxim Kurnikov
f2e79d3bfb
add GenericForeignKey support, remove some false-positives
2019-07-24 13:38:49 +03:00
Maxim Kurnikov
335c5765c3
enable test folders: select_for_update, i18n, httpwrappers, auth_tests, extra_regress ( #107 )
2019-07-10 19:38:36 +03:00
Maxim Kurnikov
2f6af159f7
add correct return annotation to get_storage_class ( #103 )
...
Co-Authored-By: cs-cordero <chris.s.cordero@gmail.com >
2019-07-10 14:06:09 +03:00
Maxim Kurnikov
2799646723
add missing files throughout the codebase ( #102 )
2019-07-09 05:18:15 +03:00
Maxim Kurnikov
d8230a4147
Add typechecking for 'file_storage', 'files' test folders ( #101 )
...
* add typechecking for 'file_storage', 'files' test folders
* fix File class annotations
2019-07-07 03:58:00 +03:00
Maxim Kurnikov
a77d5b27d8
Update typecheck_tests to django 2.2 branch, remove unused ignores ( #98 )
...
* update typecheck_tests to django 2.2 branch, remove unused ignores
* lint fixes
2019-07-01 18:44:34 +03:00
Ethan Smith
e634a5d460
Re-export names from django.core.cache.backend.base ( #71 )
2019-05-19 19:59:14 +03:00
Seth Yastrov
71fb0432f3
52/model subtypes dont typecheck ( #55 )
...
* Fix problem where Model instancess are not considered subtypes of each other due to fallback_to_any = True. Fixes #52 .
- Added a stub for __getstate__ to Model.
- Added a stub for clean() to Model.
- Correct arg type for sort_dependencies so they are covariant (Iterable rather than List).
Test ignores:
- Added some test ignores in cases where a model inherits from 2 different base models.
- Added some test ignores for cases that MyPy flags as errors due to variable redefinitions or imports that are incompatible types.
* Address review comment.
2019-03-28 23:13:02 +03:00
Maxim Kurnikov
5c6be7ad12
Add test to import all modules to check validity of stubs ( #56 )
...
* add import_all.test builder
* fix errors
* fix typechecking errors
* fix migrations typechecking
2019-03-25 01:57:34 +03:00
Konstantin Alekseev
4f83d8d1bb
Use less specific types in validators args ( #49 )
2019-03-18 13:31:35 +03:00
Maxim Kurnikov
df5c70c703
fixes for FormMixin's get_form/get_form_class
2019-02-25 04:01:36 +03:00
Maxim Kurnikov
b686751f19
fix some stubs
2019-02-22 02:55:49 +03:00
Maxim Kurnikov
116aa2c539
clean up forms
2019-02-20 15:22:46 +03:00
Maxim Kurnikov
79ebe20f2e
add more test folders
2019-02-13 19:44:25 +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
d18fc0bf5f
enable 6 more test folders
2019-02-06 14:29:42 +03:00
Maxim Kurnikov
69d4ccaf54
fixes, add some testing folders
2019-02-04 19:31:37 +03:00
Maxim Kurnikov
d03fddd96d
split error suppression for tests typechecking, fix ci, bunch of fixes
2019-02-03 19:33:51 +03:00
Maxim Kurnikov
c9e8fe53a5
sort out all test folders into passable and TODOs
2019-01-30 22:43:09 +03:00
Maxim Kurnikov
b1153204d7
enable bunch of folders
2019-01-30 21:01:33 +03:00
Maxim Kurnikov
1868100bd9
enable more folders
2019-01-30 16:12:19 +03:00
Maxim Kurnikov
628c1224d6
enable test typechecking for a bunch of django test suite folders
2019-01-30 15:56:59 +03:00
Maxim Kurnikov
1afa079b0b
add tests for the django test suite
2019-01-26 17:17:35 +03:00
Maxim Kurnikov
98e60d084f
fixes for ci imports failures
2019-01-06 21:00:01 +03:00
Maxim Kurnikov
5ba0bbe0b7
various fixes
2019-01-05 21:13:23 +03:00
Maxim Kurnikov
070cecda10
finish moving generated stubs
2018-12-22 05:18:27 +03:00
Maxim Kurnikov
013b6ee538
move django.contrib.postgres
2018-12-21 05:16:48 +03:00
Maxim Kurnikov
14435a69cc
move django.urls completely
2018-12-21 05:01:08 +03:00
Maxim Kurnikov
70a3489536
fix some issues
2018-12-21 01:57:15 +03:00
Maxim Kurnikov
c22e86377d
move django.core stubs
2018-12-21 01:17:17 +03:00
Maxim Kurnikov
25a71a7ef5
some stubs
2018-12-06 19:04:06 +03:00
Maxim Kurnikov
cf6119bf9b
run black over stubs, add checking to travis
2018-12-03 18:52:44 +03:00