pypi django-stubs 5.0.3

latest releases: 5.2.2, 5.2.1, 5.2.0...
13 months ago

What's Changed

  • Release workflow: publish django-stubs-ext before django-stubs by @flaeppe in #2188
  • Migrate apps/test_config.yml 'assert_type' tests by @flaeppe in #2190
  • Add ManyToManyField.m2m_field_name and Model._get_pk_val methods by @YPCrumble in #2177
  • Lookup should be a subtype of Expression by @mkurnikov in #2199
  • Update django.db.models.functions: allow Combinable as parameter, add Round function by @noamkush in #2195
  • Add missing django.core.management.utils functions by @Viicos in #2200
  • Improve django.middleware stubs by @Viicos in #2202
  • Improve django.http stubs by @Viicos in #2201
  • Tests: Migrate db/models/test_constraints.yml to 'assert_type' tests by @flaeppe in #2204
  • Allow any function for admin's display and action decorators by @flaeppe in #2210
  • Remove invalid re-export django.forms.ChoiceWidget by @asottile in #2207
  • Model._meta.pk is non-None by @asottile in #2218
  • update / create defaults are read-only Mapping by @asottile in #2216
  • Add missing math.Random database function by @noamkush in #2222
  • Make ReverseManyToOneDescriptor generic over a model by @flaeppe in #2227
  • Extract through table creation to separate method by @flaeppe in #2229
  • Do many related manager creation during semantic analysis by @flaeppe in #2231
  • Expand CheckRegistry.register as function (#2232) by @jwhitlock in #2233
  • don't copy magic or private methods in from_queryset managers by @asottile in #2240
  • Make plugin handle explicitly declared reverse descriptors for FKs by @flaeppe in #2230
  • Expect a QuerySet for multiple defaults in MultipleObjectMixin by @flaeppe in #2191
  • fix handling of explicit objects annotation by @asottile in #2241
  • Add atomic_blocks to base DB wrapper by @palfrey in #2242
  • walk mro for Field set type annotations by @asottile in #2244
  • Add serialized_aliases parameter to setup_databases function in django.test.utils by @DongwookKim0823 in #2247
  • use field annotations for values_list types by @asottile in #2248
  • Improve types of ConnectionProxy by @Viicos in #2246
  • Add get_template_tag_modules function signature to django.template.backends.django by @DongwookKim0823 in #2250
  • add PlaceholderNode when deferring manager class hook by @asottile in #2228
  • Update function signatures for django.db.models.sql.Query class by @DongwookKim0823 in #2253
  • Update admin.sites._ViewType bound to allow StreamingHttpResponse by @savanto in #2256
  • Add Options._get_fields by @Viicos in #2254
  • Support inheriting ManyToManyField from an abstract model by @flaeppe in #2260
  • Allow single generic param for Field in ForeignKey by @rafonseca in #2261
  • Refactor: Unify plugin check for model type info by @flaeppe in #2263
  • add Path type argument to tuple returned by get_app_template_dirs by @joshuadavidthomas in #2266
  • add missing type argument to Paginator by @joshuadavidthomas in #2271
  • Update mypy to 1.11.0 by @sobolevn in #2269
  • Check calls to filtering manager methods involving ManyToManyField by @flaeppe in #2275
  • Prepare for a release 5.0.3 by @flaeppe in #2274
  • lookup manager type via mro by @asottile in #2276
  • Check model fields on filtering methods of queryset types by @flaeppe in #2277
  • fill QuerySet generics using the manager's model type by @asottile in #2281
  • convert as_manager hooks to base class hook by @asottile in #2282

New Contributors

Full Changelog: 5.0.2...5.0.3

Don't miss a new django-stubs release

NewReleases is sending notifications on new releases.