Skip to content

Commit

Permalink
Fix Python 2.7 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
axnsan12 committed Mar 3, 2019
1 parent 904c43a commit f348084
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/drf_yasg/openapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -624,10 +624,11 @@ class ReferenceResolver(object):
{'definitions': OrderedDict([('Article', Schema(...)]), 'parameters': OrderedDict()}
"""

def __init__(self, *scopes, force_init=False):
def __init__(self, *scopes, **kwargs):
"""
:param str scopes: an enumeration of the valid scopes this resolver will contain
"""
force_init = kwargs.pop('force_init', False)
if not force_init:
raise AssertionError(
"Creating an instance of ReferenceResolver almost certainly won't do what you want it to do.\n"
Expand Down

0 comments on commit f348084

Please sign in to comment.