Traceback (most recent call last):
File "/Users/rkm/beeware/rubicon/objc/testbed.py", line 3, in <module>
from rubicon.objc import NSObject, objc_method
File "/Users/rkm/beeware/rubicon/objc/src/rubicon/objc/__init__.py", line 33, in <module>
from . import api, collections, runtime, types
File "/Users/rkm/beeware/rubicon/objc/src/rubicon/objc/api.py", line 1694, in <module>
NSNumber = ObjCClass("NSNumber")
^^^^^^^^^^^^^^^^^^^^^
File "/Users/rkm/beeware/rubicon/objc/src/rubicon/objc/api.py", line 1402, in __new__
self = super().__new__(cls, ptr, objc_class_name, (ObjCInstance,), new_attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/rkm/beeware/rubicon/objc/src/rubicon/objc/api.py", line 927, in __new__
super(ObjCInstance, type(self)).__setattr__(self, "ptr", object_ptr)
TypeError: expected 2 arguments, got 3
The import should succeed.
There was no problem with 3.12.0a7; I haven't narrowed down the change that has caused the problem, and the Python 3.12 release notes don't have anything that is an obvious candidate (to me, anyway).
Describe the bug
Python 3.12.0b1 appears to have introduced something that breaks Rubicon;
from rubicon.objc import NSObjectraises a TypeError.Steps to reproduce
from rubicon.objc import NSObjectExpected behavior
The import should succeed.
Screenshots
No response
Environment
Logs
No response
Additional context
There was no problem with 3.12.0a7; I haven't narrowed down the change that has caused the problem, and the Python 3.12 release notes don't have anything that is an obvious candidate (to me, anyway).