Skip to content

Commit

Permalink
fix ABC warning
Browse files Browse the repository at this point in the history
  • Loading branch information
tfranzel committed Mar 12, 2020
1 parent e35e172 commit 6f7800f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drf_spectacular/plumbing.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import collections
import inspect
import sys
from collections.abc import Hashable

from django import __version__ as DJANGO_VERSION
from rest_framework import fields, serializers
Expand Down Expand Up @@ -40,7 +40,7 @@ def is_field(obj):


def is_basic_type(obj):
if not isinstance(obj, collections.Hashable):
if not isinstance(obj, Hashable):
return False
return obj in OPENAPI_TYPE_MAPPING or obj in PYTHON_TYPE_MAPPING

Expand Down

0 comments on commit 6f7800f

Please sign in to comment.