Skip to content

Commit

Permalink
Merge branch 'master' into fix-HyperlinkedRelatedField.get_object
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn committed Apr 24, 2024
2 parents dfac20c + 9d25503 commit 3fb9033
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 22 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ jobs:
SETUPTOOLS_ENABLE_FEATURES=legacy-editable pip install -r ./requirements.txt
- name: Run tests
run: pytest
# Suppress errors from other packages due to https://github.com/typeddjango/pytest-mypy-plugins/issues/134
run: pytest --mypy-only-local-stub

stubtest:
timeout-minutes: 10
Expand Down
20 changes: 0 additions & 20 deletions mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,3 @@ plugins =

[mypy.plugins.django-stubs]
django_settings_module = scripts.drf_tests_settings

# Suppress errors from site-packages due to https://github.com/typeddjango/pytest-mypy-plugins/issues/134
[mypy-uritemplate.*]
warn_unreachable = false

[mypy-yaml.*]
disallow_untyped_defs = false
disallow_incomplete_defs = false

[mypy-urllib3.*]
disallow_untyped_defs = false
disallow_incomplete_defs = false

[mypy-requests.*]
disallow_untyped_defs = false
disallow_incomplete_defs = false

[mypy-markdown.*]
disallow_untyped_defs = false
disallow_incomplete_defs = false
2 changes: 1 addition & 1 deletion rest_framework-stubs/serializers.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -263,4 +263,4 @@ class ModelSerializer(Serializer, BaseSerializer[_MT]):
def get_unique_together_validators(self) -> list[UniqueTogetherValidator]: ...
def get_unique_for_date_validators(self) -> list[BaseUniqueForValidator]: ...

class HyperlinkedModelSerializer(ModelSerializer): ...
class HyperlinkedModelSerializer(ModelSerializer[_MT]): ...

0 comments on commit 3fb9033

Please sign in to comment.