From d95b92314ebb3c57a3f627476ef1d043b7c2b9a5 Mon Sep 17 00:00:00 2001 From: Simon Forman Date: Fri, 6 Jul 2018 14:20:04 -0700 Subject: [PATCH] Clean up. --- joy/utils/polytypes.py | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/joy/utils/polytypes.py b/joy/utils/polytypes.py index e7cb851..ee83db2 100644 --- a/joy/utils/polytypes.py +++ b/joy/utils/polytypes.py @@ -356,7 +356,6 @@ Ns = map(NumberStarJoyType, _R) Ss = map(StackStarJoyType, _R) -'''Docstring for functions in Sphinx?''' FUNCTIONS = { name: SymbolJoyType(name, [DEFS[name]], i) for i, name in enumerate(''' @@ -367,6 +366,7 @@ FUNCTIONS = { _Tree_add_Ee _Tree_delete_R0 _Tree_delete_clear_stuff _Tree_get_E '''.strip().split()) } +'''Docstring for functions in Sphinx?''' def defs(): @@ -471,14 +471,3 @@ eval(set_expectations.func_code, scope) del scope -# Type Checking... - -def _ge(self, other): - return (issubclass(other.__class__, self.__class__) - or hasattr(self, 'accept') - and isinstance(other, self.accept)) - -AnyJoyType.__ge__ = _ge -AnyJoyType.accept = tuple, int, float, long, str, unicode, bool, Symbol -StackJoyType.accept = tuple -FloatJoyType.accept = float -- 2.11.0