| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -17,14 +17,14 @@ def __get__(self, obj, objtype=None): | |||
| 17 | 17 | return self.proxy_type(self.fn_name, obj) | |
| 18 | 18 | ||
| 19 | 19 | ||
| 20 | - class TaggedValueMeta(type): | ||
| 21 | - def __init__(self, name, bases): | ||
| 22 | - for fn_name in self._proxies.keys(): | ||
| 20 | + class TaggedValueMeta (type): | ||
| 21 | + def __init__(cls, name, bases, dict): | ||
| 22 | + for fn_name in cls._proxies.keys(): | ||
| 23 | 23 | try: | |
| 24 | - dummy = getattr(self, fn_name) | ||
| 24 | + dummy = getattr(cls, fn_name) | ||
| 25 | 25 | except AttributeError: | |
| 26 | - setattr(self, fn_name, | ||
| 27 | - ProxyDelegate(fn_name, self._proxies[fn_name])) | ||
| 26 | + setattr(cls, fn_name, | ||
| 27 | + ProxyDelegate(fn_name, cls._proxies[fn_name])) | ||
| 28 | 28 | ||
| 29 | 29 | ||
| 30 | 30 | class PassThroughProxy(object): | |
@@ -189,7 +189,7 @@ def get_unit(self): | |||
| 189 | 189 | return self.unit | |
| 190 | 190 | ||
| 191 | 191 | ||
| 192 | - TaggedValue = TaggedValueMeta('TaggedValue', (_TaggedValue, )) | ||
| 192 | + TaggedValue = TaggedValueMeta('TaggedValue', (_TaggedValue, ), {}) | ||
| 193 | 193 | ||
| 194 | 194 | ||
| 195 | 195 | class BasicUnit(object): | |
| Back | FazBrowse Home | New Git URL |
0 commit comments