From bd6629f62eb2a57b8c3d84dea1d528a147be7dc6 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Sat, 21 Feb 2026 09:14:59 -0500 Subject: [PATCH] mjo/clan/clan_operator.py: swap isinstance() for category check Amazingly, this also fails, still ONLY while doctesting. --- mjo/clan/clan_operator.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mjo/clan/clan_operator.py b/mjo/clan/clan_operator.py index 28f134f..82c0639 100644 --- a/mjo/clan/clan_operator.py +++ b/mjo/clan/clan_operator.py @@ -30,12 +30,12 @@ class ClanOperator(Map): """ def __init__(self, domain, codomain, mat): - from mjo.clan.clan import Clan + from mjo.clan.clan import Clans - if not isinstance(domain, Clan): - raise TypeError('domain must be a clan') - if not isinstance(codomain, Clan): - raise TypeError('codomain must be a clan') + if not domain in Clans: + raise TypeError("domain must be a clan") + if not codomain in Clans: + raise TypeError("codomain must be a clan") F = domain.base_ring() if not (F == codomain.base_ring()): -- 2.51.0