Traceback (most recent call last):
File "blueman/main/PluginManager.py", line 35, in <module>
class PluginManager(GObject.GObject, Generic[_T], metaclass=PluginManagerMeta):
File "/usr/local/lib/python3.6/typing.py", line 978, in __new__
self = super().__new__(cls, name, bases, namespace, _root=True)
File "/usr/local/lib/python3.6/typing.py", line 137, in __new__
return super().__new__(cls, name, bases, namespace)
File "/usr/local/lib/python3.6/abc.py", line 133, in __new__
cls = super().__new__(mcls, name, bases, namespace, **kwargs)
File "/usr/local/lib/python3.6/site-packages/gi/types.py", line 253, in mro
return mro(cls)
File "/usr/local/lib/python3.6/site-packages/gi/types.py", line 311, in mro
not_head = [s for s in bases_of_subclasses if candidate in s[1:]]
File "/usr/local/lib/python3.6/site-packages/gi/types.py", line 311, in <listcomp>
not_head = [s for s in bases_of_subclasses if candidate in s[1:]]
File "/usr/local/lib/python3.6/typing.py", line 1092, in __eq__
if self.__origin__ is None or other.__origin__ is None:
AttributeError: type object 'PluginManager' has no attribute '__origin__'
I might be doing something really stupid there, not sure. Anyway, as this blocks me a little bit, I was thinking about just dropping support for Python 3.6. I checked the "rolling repositories" that have blueman 2.1.3 according to https://repology.org/project/blueman/versions and all of them currently have Python 3.8 or are even migrating to 3.9 already. So basically the only group targeted by support for Python 3.6 and 3.7 is people installing blueman from source using those versions for whatever reason and that sounds reeaally limited.
#1341 tries to make
PluginManagergeneric (again) and as it's also aGObjectandGenericis of typeGenericMetain Python 3.6, it fails in Python 3.6 without a dedicated meta class as proposed in #1130 (comment). However, that solution does not work for me either as Python 3.6 gives me that:I might be doing something really stupid there, not sure. Anyway, as this blocks me a little bit, I was thinking about just dropping support for Python 3.6. I checked the "rolling repositories" that have blueman 2.1.3 according to https://repology.org/project/blueman/versions and all of them currently have Python 3.8 or are even migrating to 3.9 already. So basically the only group targeted by support for Python 3.6 and 3.7 is people installing blueman from source using those versions for whatever reason and that sounds reeaally limited.