Skip to content

Commit 63a1432

Browse files
authored
mypy 0.610 (#176)
1 parent 1829427 commit 63a1432

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

mypy_requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
mypy==0.600
1+
mypy==0.610

schema_salad/ref_resolver.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,8 +582,12 @@ def resolve_ref(self,
582582
resolved_obj, metadata = self.resolve_all(
583583
doc, base_url, file_base=doc_url, checklinks=checklinks)
584584
else:
585+
if doc:
586+
resolve_target = doc
587+
else:
588+
resolve_target = obj
585589
resolved_obj, metadata = self.resolve_all(
586-
doc if doc else obj, doc_url, checklinks=checklinks)
590+
resolve_target, doc_url, checklinks=checklinks)
587591

588592
# Requested reference should be in the index now, otherwise it's a bad
589593
# reference

0 commit comments

Comments
 (0)