pypi djangorestframework-stubs 3.15.0

latest releases: 3.16.2, 3.16.1, 3.16.0...
16 months ago

djangorestframework 3.15 support

  • Add ValidationError params= argument & default_params attribute by @intgr in #338
  • Add SimpleRouter use_regex_path argument by @intgr in #344
  • Add construct_search function queryset argument for SearchFilter by @saJaeHyukc in #574
  • Add get_field_name function of AutoSchema by @saJaeHyukc in #575
  • Move fields.set_value to Serializer.set_value by @saJaeHyukc in #576
  • Remove compat.distinct function by @saJaeHyukc in #579
  • Add fields.logging by @saJaeHyukc in #581
  • Add RemovedInDRF317Warning by @saJaeHyukc in #578
  • Add DecimalField normalize_output argument by @saJaeHyukc in #584
  • Add serializers.LIST_SERIALIZER_KWARGS_REMOVE by @saJaeHyukc in #580
  • Add represent_timedelta, a function related to CustomScalar by @saJaeHyukc in #586
  • Add is_already_registered function of BaseRouter by @saJaeHyukc in #587
  • Add __class_getitem__ of classes by @saJaeHyukc in #585
  • Add optional_logout csrf_token argument by @saJaeHyukc in #589
  • Add run_child_validation function of ListSerializer by @saJaeHyukc in #590
  • Add filters.search_smart_split by @saJaeHyukc in #592
  • Add functions related to UniqueConstraint by @saJaeHyukc in #591

Stubs changes

  • allow floats for _GetDataType by @asottile-sentry in #546
  • Use Pattern[str] for RegexField by @Viicos in #539
  • Fixed ModelSerializer.build_standard_field(model_field=) parameter typing by @noamkush in #541
  • Make HyperlinkedRelatedField(view_name=) & HyperlinkedIdentityField(view_name=) param optional by @Alexerson in #530
  • Allow passing None, empty to ModelSerializer.__init__() default= and initial= kwargs by @intgr in #521
  • Add ViewSetAction.__name__ attribute by @igorgaming in #567
  • Make HyperlinkedModelSerializer generic by @intgr in #595
  • Fix HyperlinkedRelatedField.get_object() argument types by @intgr in #597
  • Allow None for ListField.min/max_length by @Viicos in #601

Housekeeping

  • Omit authtoken.migration of allowlist_todo by @saJaeHyukc in #583
  • Tests: Fix test after django-stubs StrPromise changes by @intgr in #518
  • Update pre-commit by @sobolevn in #550
  • Bump pytest-mypy-plugins and mypy by @sobolevn in #557
  • Use explicit target versions for black by @sobolevn in #558
  • Update DRF to 3.15.0 by @sobolevn in #560
  • Clean mypy cache on each run of stubtest by @intgr in #562
  • Fix and enable Ruff lints PYI002, PYI026 by @intgr in #496
  • Update djangorestframework to 3.15.1 by @sobolevn in #565
  • Fix CI: suppress mypy errors in test suite that come from 3rd party packages by @intgr in #596
  • CI: Run tests daily to detect incompatible django-stubs changes by @intgr in #519
  • Version 3.15.0 release by @intgr in #605

New Contributors

Full Changelog: 3.14.5...3.15.0

Don't miss a new djangorestframework-stubs release

NewReleases is sending notifications on new releases.