Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __subclasscheck__(cls, subclass: type) -> bool:
return Datetime64 in get_mro(subclass)
def _is_a(this: Any, that: type) -> bool:
# Return whether this is a subclass of that, considering the mro.
return that in get_mro(this)
def __subclasscheck__(cls, subclass: type) -> bool:
return Bool in get_mro(subclass)
def __subclasscheck__(cls, subclass: type) -> bool:
return Timedelta64 in get_mro(subclass)
def __subclasscheck__(cls, subclass: type) -> bool:
if Unicode in get_mro(subclass):
return cls.chars is Any or subclass.chars <= cls.chars
return False