Skip to content

Commit ee743f9

Browse files
committed
Bump PendingDeprecationWarning to DeprecationWarning
* as it is a major release 3, start right away from DeprecationWarning for ObjectTypes missing fields or exclude option
1 parent 3d497ea commit ee743f9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

graphene_django/tests/test_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ class Meta:
482482
@with_local_registry
483483
def test_django_objecttype_neither_fields_nor_exclude():
484484
with pytest.warns(
485-
PendingDeprecationWarning,
485+
DeprecationWarning,
486486
match=r"Creating a DjangoObjectType without either the `fields` "
487487
"or the `exclude` option is deprecated.",
488488
):

graphene_django/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ def __init_subclass_with_meta__(
226226
"or the `exclude` option is deprecated. Add an explicit `fields "
227227
"= '__all__'` option on DjangoObjectType {class_name} to use all "
228228
"fields".format(class_name=cls.__name__,),
229-
PendingDeprecationWarning,
229+
DeprecationWarning,
230230
stacklevel=2,
231231
)
232232

0 commit comments

Comments
 (0)