Mercurial > code > home > repos > light9
changeset 2163:32f7064241eb
c2
author | drewp@bigasterisk.com |
---|---|
date | Thu, 18 May 2023 12:17:31 -0700 |
parents | e69661cca1cb |
children | 1d7ccdd7a98e |
files | light9/newtypes.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/light9/newtypes.py Thu May 18 11:56:28 2023 -0700 +++ b/light9/newtypes.py Thu May 18 12:17:31 2023 -0700 @@ -27,7 +27,7 @@ def _isSubclass2(t1: Type, t2: Type) -> bool: """same as issubclass but t1 can be a NewType""" if hasattr(t1, '__supertype__'): - t1 = t1.__superType__ + t1 = t1.__supertype__ return issubclass(t1, t2)