Releases: typeddjango/django-stubs
Releases · typeddjango/django-stubs
Version 1.13.1
What's Changed
- Fix types for sessions by @ljodal in #1173
- Add SQLite backend is_in_memory_db() functions by @adamchainz in #1218
- Introduce
QuerySetAny
type for QuerySet isinstance checks by @PIG208 in #1199 - Add LANGUAGE_COOKIE_* settings by @andersk in #1228
- move _default_manager to ModelBase by @clouds56 in #1150
- Support more use cases of
gettext_lazy
. by @PIG208 in #1233 - Prefetch attributes by @g-as in #1234
- Typehint common dunder methods by @intgr in #1238
- Add Optional to LANGUAGE_COOKIE_SAMESITE by @andersk in #1246
- Add django.db.models.query.BaseIterable and subclasses by @joshua-jandyco in #1242
- Add Django 4.1 constraints violation_error_message by @martinlehoux in #1263
- Type
ModelAdmin.fieldsets
'description' option to supportgettext_lazy
by @flaeppe in #1268 - Type hint improvements for string promises, manager, query set by @benspaulding in #1272
- update django.contrib.messages to use _StrOrPromise by @terencehonles in #1274
- Add Django 4.0 trigram word classes by @michael-lazar in #1278
Fixes
Housekeeping
- Fix stackoverflow badge by @sobolevn in #1230
- revert changes in #1252 leaked into master by @hoefling in #1255
- Version 1.13.1 release by @sobolevn in #1241
Continuous integration
- Enable
pre-commit.ci
by @sobolevn in #1222 - Cancel old pipelines by @sobolevn in #1226
- Run pre-commit only on pre-commit.ci by @adamchainz in #1250
- Run checks against Django 4.1 and Python 3.11 by @michael-k in #1223
- Introduce
flake8-pyi
inpre-commit
checks by @hoefling in #1253 - Pin flake8-pyi to 22.10.0 by @hoefling in #1254
- revert changes done in #1253 that satisfy Y041, disable Y041 rule by @hoefling in #1256
- Fix CI: Update flake8-pyi by @intgr in #1279
Dependency updates
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #1236
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #1258
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #1275
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #1281
New Contributors
- @clouds56 made their first contribution in #1150
- @pre-commit-ci made their first contribution in #1236
- @joshua-jandyco made their first contribution in #1242
- @martinlehoux made their first contribution in #1263
- @benspaulding made their first contribution in #1272
- @michael-lazar made their first contribution in #1278
Full Changelog: 1.13.0...1.13.1
Version 1.13.0 and [email protected]
What's Changed
- Set generic type of SimpleCookie by @w0rp in #1018
- Update RunSQL type to include parametrized sql by @lachtanek in #1015
- BaseContext.copy by @smithdc1 in #1012
- Add missing type for TestCase.captureOnCommitCallbacks by @lachtanek in #1016
- Fix nullability of blank charfields in values and values_list by @ljodal in #1020
- Improved type of template.loader.get_template() by @smithdc1 in #1011
- Bump black from 22.3.0 to 22.6.0 by @dependabot in #1027
- Fix
logger
type in all modules by @sobolevn in #1031 - Support cursor.execute(psycopg2.sql.Composable) by @andersk in #1029
- Bump requests from 2.28.0 to 2.28.1 by @dependabot in #1035
- Improved return type of render_to_string(). by @smithdc1 in #1036
- Resolve all queryset methods on managers as attributes by @ljodal in #1028
- Populate model argument for dynamically created managers by @flaeppe in #1033
- Fix type stubs for EmptyManager by @ljodal in #1039
- Improve stubs with minor fixes by @PIG208 in #1038
- Monkeypatch some more generics. by @ngnpope in #1050
- Bump pre-commit from 2.19.0 to 2.20.0 by @dependabot in #1057
- Use
_AsSqlType
foras_sql
by @PIG208 in #1052 - Made BaseContext setitem and getitem consistant. by @smithdc1 in #1040
- Add support for inline
from_queryset
in model classes by @ljodal in #1045 - Improve typing for unresolved managers by @ljodal in #1044
- Use a more general type for django.core.mail.send_mass_mail's datatuple by @jhhayashi in #1062
- Auto-update pre-commit hooks by @github-actions in #1070
- Improve type annotation of DiscoverRunner. by @PIG208 in #1069
- Fix overloads and remove
PathLike
infinders
by @andersk in #1063 - Fix type annotation of message_dict. by @PIG208 in #1073
- Tighten
management.get_commands
type by @andersk in #1074 - Improve stubs for contrib.postgres.operations. by @PIG208 in #1071
- Improve type for @require_http_methods by @adamchainz in #1075
- Auto-update pre-commit hooks by @github-actions in #1076
- Support Lookup generics. by @PIG208 in #1079
- Fix OutputWrapper.style_func type by @andersk in #1080
- Fix type of min_value and max_value on FloatField by @UnknownPlatypus in #1081
- docs(README): Fix indentation in list and examples by @tony in #1083
- Remove trailing whitespace in README to fix CI failure by @andersk in #1084
- Fix CI error introduced since Django 4.1 by @PIG208 in #1093
- Add preset options list to makemessages command. by @PIG208 in #1091
- Improve type annotation for RunSQL by @PIG208 in #1090
- Fix base_field type for SimpleArrayField by @adnathanail in #1097
- Prevent building an editable wheel with setuptools<64 by @andersk in #1123
- Improve hints for BaseCache by @adamchainz in #1117
- Add HttpResponseBase.contains by @adamchainz in #1099
- Add BaseDatabaseWrapper.operators by @adamchainz in #1119
- Add SimpleTestCase.assertURLEqual() by @adamchainz in #1102
- Allow None to be passed to Paginator.get_page by @adamchainz in #1101
- Improve types for CheckMessage subclasses by @adamchainz in #1107
- Expose HttpResponseBase in django.http by @adamchainz in #1121
- Improve types for DiscoverRunner by @adamchainz in #1106
- Improve return type for BaseCommand.execute() by @adamchainz in #1104
- Fix CI by @sobolevn in #1108
- Improve type hints for test client response.context by @adamchainz in #1100
- Add test client response.redirect_chain by @adamchainz in #1124
- Add different signatures for form assertions from Django 4.1 by @adamchainz in #1105
- Run stubs self-check on all python versions by @sobolevn in #1126
- Add database Field.non_db_attrs by @adamchainz in #1125
- Rewrite SessionBase properties to use
@property
by @adamchainz in #1129 - Add db Field.flatchoices by @adamchainz in #1128
- Add HttpRequest current_app and LANGUAGE_CODE attrs by @adamchainz in #1127
- Updating deconstructible by @karolyi in #1116
- Type
samesite
values as literals 'Lax', 'Strict' or 'None' by @flaeppe in #1110 - Enhance stubs for csrf decorators. by @PIG208 in #1130
- Return Promise for lazy functions. by @PIG208 in #689
- Add async queryset for Django 4.1 by @xncbf in #1131
- Add Q.xor by @adamchainz in #1133
- Improve database backend types by @adamchainz in #1132
- Improve types for QuerySet.contains and bulk_create by @adamchainz in #1134
- Fix Manager.contains and bulk_create by @adamchainz in #1135
- Add QuerySet.aiter() by @adamchainz in #1136
- Fix return type for django.shortcuts.render by @SebastiaanZ in #1140
- Bump black from 22.6.0 to 22.8.0 by @dependabot in #1141
- Auto-update pre-commit hooks by @github-actions in #1142
- fix type hint for GenericSitemap(info_dict) by @djbrown in #1111
- Reflect the deprecation of get_response being None. by @PIG208 in #1086
- Add django.db.models.functions.Collate by @syre in #1143
- Bump pytest from 7.1.2 to 7.1.3 by @dependabot in #1144
- Correct EmailMultiAlternatives.body by @adamchainz in #1146
- Add type and parameter fields to MediaType by @yrd in #1103
- Improve Flake8 config by @adamchainz in #1149
- Serialize
RelatedManager
attributes in cache by @flaeppe in #1152 - Auto-update pre-commit hooks by @github-actions in #1153
- Adjust
choices=
type variance for model fields by @flaeppe in #1154 - Broaden type annotation for verbose_name(_plural) to accept lazystr. by @PIG208 in #1139
- Improve stubs for runserver management command. by @PIG208 in #1037
- Relax
fields=
arg forrefresh_from_db
to acceptSequence
by @flaeppe in #1156 - Fix paramters for ParallelTestSuite and RemoteTestRunner. by @PIG208 in #1072
- Fix unresolved placeholder error during serialization by @ljodal in #1161
- Disable fallback to runtime types for Django settings by @andersk in #1163
- Auto...
Release [email protected]
What's Changed
- Upgrade mypy support to 0.960 by @DamianZaremba in #973
- Fix false positive ModelAdmin.list_display_links=None by @AllexVeldman in #964
- Fix AlterModelManagers managers annotation to be [(str, Manager), ...] by @alexdutton in #966
- Support content attribute for a Testing Response. by @quinox in #968
- Fix BaseModelFormSet.save_m2m: accept
self
by @blueyed in #970 - Move mypy version upper bound to a [compatible-mypy] extra by @andersk in #979
- Add GitHub release action to upload to PyPI & create GitHub release by @terencehonles in #980
- Bump mypy from 0.960 to 0.961 by @dependabot in #983
- Improve admin filter types by @adamchainz in #984
- remove unneeded submodule (removed in #485) by @terencehonles in #982
- Remove coreapi from requirements.txt by @jzmiller1 in #987
- Enable GitHub auto generated release notes for GitHub releases by @terencehonles in #988
- Bump requests from 2.27.1 to 2.28.0 by @dependabot in #990
- Bump actions/setup-python from 3 to 4 by @dependabot in #989
- Improve admin filter lookups() return type by @adamchainz in #992
- Fix manager types scope by @sterliakov in #991
- Add fallback related manager in final iteration of AddRelatedManagers by @aleksanb in #993
- Improve hints in migration Operation class by @intgr in #996
- Set type of default
django.core.cache.cache
toBaseCache
by @flaeppe in #998 - Add Feed to monkeypatch to fix generic issue. by @adambirds in #1002
- Emit error and set fallback type for managers that can't be resolved by @flaeppe in #999
New Contributors
- @AllexVeldman made their first contribution in #964
- @alexdutton made their first contribution in #966
- @andersk made their first contribution in #979
- @jzmiller1 made their first contribution in #987
- @adambirds made their first contribution in #1002
Full Changelog: https://github.com/typeddjango/django-stubs/compare/[email protected]
Release [email protected]
What's Changed
- Upgrade mypy support to 0.960 by @DamianZaremba in #973
- Fix false positive ModelAdmin.list_display_links=None by @AllexVeldman in #964
- Fix AlterModelManagers managers annotation to be [(str, Manager), ...] by @alexdutton in #966
- Support content attribute for a Testing Response. by @quinox in #968
- Fix BaseModelFormSet.save_m2m: accept
self
by @blueyed in #970 - Move mypy version upper bound to a [compatible-mypy] extra by @andersk in #979
- Add GitHub release action to upload to PyPI & create GitHub release by @terencehonles in #980
- Bump mypy from 0.960 to 0.961 by @dependabot in #983
- Improve admin filter types by @adamchainz in #984
- remove unneeded submodule (removed in #485) by @terencehonles in #982
- Remove coreapi from requirements.txt by @jzmiller1 in #987
- Enable GitHub auto generated release notes for GitHub releases by @terencehonles in #988
- Bump requests from 2.27.1 to 2.28.0 by @dependabot in #990
- Bump actions/setup-python from 3 to 4 by @dependabot in #989
- Improve admin filter lookups() return type by @adamchainz in #992
- Fix manager types scope by @sterliakov in #991
- Add fallback related manager in final iteration of AddRelatedManagers by @aleksanb in #993
- Improve hints in migration Operation class by @intgr in #996
- Set type of default
django.core.cache.cache
toBaseCache
by @flaeppe in #998 - Add Feed to monkeypatch to fix generic issue. by @adambirds in #1002
- Emit error and set fallback type for managers that can't be resolved by @flaeppe in #999
New Contributors
- @AllexVeldman made their first contribution in #964
- @alexdutton made their first contribution in #966
- @andersk made their first contribution in #979
- @jzmiller1 made their first contribution in #987
- @adambirds made their first contribution in #1002
Full Changelog: https://github.com/typeddjango/django-stubs/compare/[email protected]
Version 1.11.0
- mypy 0.950 support
Version 1.10.1
Version 1.10.1
Version 1.10.0
Version 1.10.0
Version 1.9.0
Version 1.9.0
Version 1.8.0
Version 1.8.0
Version 1.7.0
Version 1.7.0