Dan Albert 2f2ebff674 Fix merged classvars in UnitType descendants.
```
>>> class Foo:
...     bar = 0
...     @classmethod
...     def set_bar(cls, v):
...             cls.bar = v
...
>>> class Bar(Foo):
...     ...
...
>>> Bar.set_bar(1)
>>> Bar.bar
1
>>> Foo.bar
0
>>> class Foo:
...     bar = {}
...     @classmethod
...     def add(cls, k, v):
...             cls.bar[k] = v
...
>>> class Bar(Foo):
...     pass
...
>>> Bar.add(0, 1)
>>> Bar.bar
{0: 1}
>>> Foo.bar
{0: 1}
```

The collections are copied by reference into the descendants, whereas
_loaded is copied by value, so that one can stay. Before this patch,
every subtype was loading because _loaded was set per subclass, but they
were all registering with a common collection defined by UnitType rather
than their own class.
2023-04-26 23:09:57 -07:00
..
2023-04-26 23:00:23 -07:00
2023-04-26 23:00:23 -07:00
2022-03-03 17:11:01 -08:00
2023-01-04 12:58:36 -08:00
2023-04-26 00:36:34 -07:00
2022-09-27 18:34:23 -07:00
2022-02-22 00:10:31 -08:00
2023-01-04 12:58:36 -08:00
2022-05-07 18:08:26 +02:00
2023-04-25 23:28:01 -07:00
2023-01-04 12:58:36 -08:00
2021-11-20 18:49:14 -08:00
2022-03-28 20:32:19 +02:00
2022-10-15 17:26:27 -07:00
2021-11-20 18:49:14 -08:00
2022-09-27 18:34:23 -07:00
2021-11-21 11:30:39 -08:00
2022-04-19 10:41:16 +02:00
2022-04-19 10:41:16 +02:00
2022-11-19 13:17:18 -07:00