Skip to content

Bump pyobjc-core from 12.1 to 12.2#200

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/pyobjc-core-12.2
Open

Bump pyobjc-core from 12.1 to 12.2#200
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/pyobjc-core-12.2

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github Jun 2, 2026

Bumps pyobjc-core from 12.1 to 12.2.

Release notes

Sourced from pyobjc-core's releases.

v12.2

  • Update framework bindings for macOS 26.5 SDK

  • The following code failed at the last line in previous versions:

     class MyObject(NSObject):
         pass
    obj = MyObject()
    obj.alloc = MyObject.alloc
    print(obj.alloc) # Raised AttributeError

  • Backward incompatible changes: CFBagCreate and CFBagCreateMutable now match the API in Objective-C, that is, a value for the callbacks argument must be passed (must be kCFTypeBagCallBacks).

  • #663: Fix retain count management for the callbacks registered with DARegisterDiskEjectApprovalCallback, DARegisterDiskMountApprovalCallback, and DARegisterDiskUnmountApprovalCallback in DiskArbitration bindings.

  • “Hidden” instance methods were not hidden when looking them up as an attribute on the class, but found an unbound method as if the method was not hidden.

  • “Hidden” instance methods were visible in dir(SomeClass).

  • #664: Fix anObject.methodForSelector_(some_selector) resolving to a class method IMP when a bound selector object for some_selector is a class attribute.

  • Fixed some memory leaks on unlikely error paths.

  • #637: numbers.Number values are proxies as an NSNumber value.

  • #665: the new of Objective-C classes now also support keyword arguments derived from class selectors of the form valueWithKey1:key2: (with an arbitrary prefix instead of value).

    The following calls are now possible (as examples):

    • Foundation.NSHost(address="www.python.org"), returns Foundation.NSHost.hostWithAddress_("www.python.org").

    • AppKit.NSImage(systemSymbolName="multiply.circle.fill", accessibilityDescription="multiply icon"), returns AppKit.NSColor.colorWithSystemSymbolName_accessibilityDescription_("multiply.circle.fill", "multiply icon").

  • Add NSMutableData.take_bytes on Python 3.15 to mirror the new bytearray method of the same name.

  • Rewrite the construction of objects representing method and function metadata, this should result in (slightly) less memory usage.

  • This release gets the testsuite for pyobjc-core to a point where there is comprehensive test coverage for the entire bridge. All extension modules now have 100% test coverage according to lcov, although with use for exclusion comments to ignore code blocks that cannot be reached for various reasons (e.g. PyDict_New can fail, but that only happens when running out of memory and it not preproducable during testing).

  • This enables refactoring the code in pyobjc-core with more confidence that this won’t result in unexpected changes in behaviour.

  • Fix error message for invalid argument to a callable with a variable length output buffer argument.

  • Fix error handlign for incomplete struct encodings.

  • Raise better error when specifying a negative array size for (Objective-)C arguments where the size of a buffer is passed as one of the arguments to a method or function.

... (truncated)

Changelog

Sourced from pyobjc-core's changelog.

Version 12.2

  • Update framework bindings for macOS 26.5 SDK

  • The following code failed at the last line in previous versions:

    .. sourcecode:: python

    class MyObject(NSObject): pass

    obj = MyObject() obj.alloc = MyObject.alloc print(obj.alloc) # Raised AttributeError

  • Backward incompatible changes:

    CFBagCreate and CFBagCreateMutable now match the API in Objective-C, that is, a value for the callbacks argument must be passed (must be kCFTypeBagCallBacks).

  • :issue:663: Fix retain count management for the callbacks registered with :func:DARegisterDiskEjectApprovalCallback <DiskArbitration.DARegisterDiskEjectApprovalCallback>, :func:DARegisterDiskMountApprovalCallback <DiskArbitration.DARegisterDiskMountApprovalCallback>, and :func:DARegisterDiskUnmountApprovalCallback <DiskArbitration.DARegisterDiskUnmountApprovalCallback> in :doc:DiskArbitration </apinotes/DiskArbitration> bindings.

  • "Hidden" instance methods were not hidden when looking them up as an attribute on the class, but found an unbound method as if the method was not hidden.

  • "Hidden" instance methods were visible in dir(SomeClass).

  • :issue:664: Fix anObject.methodForSelector_(some_selector) resolving to a class method IMP when a bound selector object for some_selector is a class attribute.

  • Fixed some memory leaks on unlikely error paths.

  • :issue:637: numbers.Number values are proxies as an NSNumber value.

  • :issue:665: the __new__ of Objective-C classes now also support keyword arguments derived from class selectors of the form valueWithKey1:key2: (with an arbitrary prefix instead of value).

    The following calls are now possible (as examples):

    • Foundation.NSHost(address="www.python.org"), returns Foundation.NSHost.hostWithAddress_("www.python.org").

    • AppKit.NSImage(systemSymbolName="multiply.circle.fill", accessibilityDescription="multiply icon"), returns

... (truncated)

Commits
  • 0c96b8e Prepare for release
  • 29cdd91 Standardize structure of 'callable' elements in metadata overrides
  • 60d6388 Fix regression in detection of 'void' methods
  • 3a69976 Regenerate metadata and fix some test failures
  • 89b26db Fix test failures in framework bindings
  • 7733041 HomeKit bindings were removed previously
  • 390176e Remove unneeded code path (Py3.15)
  • 6a9dafe Updates for recently merged PR
  • 6ecbee2 Recently changed registration functions to not replace existing registrations.
  • 957b44f Rescan an regenerate metadata
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [pyobjc-core](https://github.com/ronaldoussoren/pyobjc) from 12.1 to 12.2.
- [Release notes](https://github.com/ronaldoussoren/pyobjc/releases)
- [Changelog](https://github.com/ronaldoussoren/pyobjc/blob/main/docs/changelog.rst)
- [Commits](ronaldoussoren/pyobjc@v12.1...v12.2)

---
updated-dependencies:
- dependency-name: pyobjc-core
  dependency-version: '12.2'
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update python code labels Jun 2, 2026
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Jun 2, 2026

@codacy-production
Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants