Skip to content

Commit

Permalink
requirements/lint.txt: ruff>=0.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss committed Oct 19, 2024
1 parent 8389e33 commit 0ddd1ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/drf_yasg/openapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ def __init__(self, resolver, name, scope, expected_type, ignore_unresolved=False
:param bool ignore_unresolved: do not throw if the referenced object does not exist
"""
super(_Ref, self).__init__()
assert not isinstance(self, _Ref), "do not instantiate _Ref directly"
assert type(self) != _Ref, "do not instantiate _Ref directly" # noqa: E721
ref_name = "#/{scope}/{name}".format(scope=scope, name=name)
if not ignore_unresolved:
obj = resolver.get(name, scope)
Expand Down

0 comments on commit 0ddd1ab

Please sign in to comment.