Skip to content

Commit

Permalink
Fixed #32.
Browse files Browse the repository at this point in the history
  • Loading branch information
Stewori committed Apr 5, 2018
1 parent 928fd62 commit 8f0e738
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pytypes/type_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -1608,11 +1608,6 @@ def _issubclass(subclass, superclass, bound_Generic=None, bound_typevars=None,
try:
if _issubclass_2(subclass, Empty, bound_Generic, bound_typevars,
bound_typevars_readonly, follow_fwd_refs, _recursion_check):
if _issubclass_2(superclass, Container, bound_Generic, bound_typevars,
bound_typevars_readonly, follow_fwd_refs, _recursion_check):
return _issubclass_2(subclass.__args__[0], superclass,
bound_Generic, bound_typevars,
bound_typevars_readonly, follow_fwd_refs, _recursion_check)
try:
if _issubclass_2(superclass.__origin__, Container,
bound_Generic, bound_typevars,
Expand All @@ -1621,6 +1616,11 @@ def _issubclass(subclass, superclass, bound_Generic=None, bound_typevars=None,
bound_Generic, bound_typevars,
bound_typevars_readonly, follow_fwd_refs, _recursion_check)
except: pass
if _issubclass_2(superclass, Container, bound_Generic, bound_typevars,
bound_typevars_readonly, follow_fwd_refs, _recursion_check):
return _issubclass_2(subclass.__args__[0], superclass,
bound_Generic, bound_typevars,
bound_typevars_readonly, follow_fwd_refs, _recursion_check)
except: pass
try:
if _issubclass_2(superclass, Empty, bound_Generic, bound_typevars,
Expand Down

0 comments on commit 8f0e738

Please sign in to comment.