Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Aug 18, 2024

This PR contains the following updates:

Package Change Age Confidence
bidict (changelog) ==0.22.1 -> ==0.23.1 age confidence

Release Notes

jab/bidict (bidict)

v0.23.1

Compare Source

Fix a regression in 0.23.0 that could defeat type inference
of a bidict's key type and value type when running in Python 3.8 or 3.9.
:issue:310

v0.23.0

Compare Source

Primarily, this release simplifies bidict by removing minor features
that are no longer necessary or that have little to no apparent usage,
and it also includes some performance optimizations.

Specifically, initializing or updating a bidict
is now up to 70% faster in microbenchmarks.

The changes in this release will also make it easier
to maintain and improve bidict in the future,
including further potential performance optimizations.

It also contains several other improvements.

  • Drop support for Python 3.7,
    which reached end of life on 2023-06-27,
    and take advantage of features available in Python 3.8+.

  • Remove FrozenOrderedBidict now that Python 3.7 is no longer supported.
    :class:~bidict.frozenbidict now provides everything
    that FrozenOrderedBidict provided
    (including :class:reversibility <collections.abc.Reversible>)
    on all supported Python versions,
    but with less space overhead.

  • Remove namedbidict due to low usage.

  • Remove the kv field of :class:~bidict.OnDup
    which specified the :class:~bidict.OnDupAction to take
    in the case of :ref:basic-usage:key and value duplication.
    The :attr:~bidict.OnDup.val field now specifies the action to take
    in the case of
    :ref:basic-usage:key and value duplication
    as well as
    :ref:just value duplication <basic-usage:values must be unique>.

  • Improve type hints for the
    :attr:~bidict.BidictBase.inv shortcut alias
    for :attr:~bidict.BidictBase.inverse.

  • Fix a bug where calls like
    bidict(None), bi.update(False), etc.
    would fail to raise a :class:TypeError.

  • All :meth:~bidict.BidictBase.__init__,
    :meth:~bidict.MutableBidict.update,
    and related methods
    now handle SupportsKeysAndGetItem <https://github.com/python/typeshed/blob/3eb9ff/stdlib/_typeshed/__init__.pyi#L128-L131>__
    objects that are not :class:~collections.abc.Mapping\s
    the same way that MutableMapping.update() <https://github.com/python/cpython/blob/v3.11.5/Lib/_collections_abc.py#L943>__ does,
    before falling back to handling the provided object as an iterable of pairs.

  • The :func:repr of ordered bidicts now matches that of regular bidicts,
    e.g. OrderedBidict({1: 1}) rather than OrderedBidict([(1, 1)]).

    (Accordingly, the bidict.__repr_delegate__ field has been removed
    now that it's no longer needed.)

    This tracks with the change to :class:collections.OrderedDict's :func:repr
    in Python 3.12 <https://github.com/python/cpython/pull/101661>__.

  • Test with Python 3.12 in CI.

    Note: Older versions of bidict also support Python 3.12,
    even though they don't explicitly declare support for it.

  • Drop use of Trove classifiers <https://github.com/pypa/trove-classifiers>__
    that declare support for specific Python versions in package metadata.


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot changed the title chore(deps): update dependency bidict to v0.23.1 Update dependency bidict to v0.23.1 Sep 17, 2024
@renovate renovate bot changed the title Update dependency bidict to v0.23.1 chore(deps): update dependency bidict to v0.23.1 Oct 19, 2024
@renovate renovate bot changed the title chore(deps): update dependency bidict to v0.23.1 Update dependency bidict to v0.23.1 Feb 20, 2025
@renovate renovate bot force-pushed the renovate/bidict-0.x branch from 8f9adac to 66b425b Compare March 3, 2025 12:15
@renovate renovate bot changed the title Update dependency bidict to v0.23.1 chore(deps): update dependency bidict to v0.23.1 Mar 6, 2025
@renovate renovate bot changed the title chore(deps): update dependency bidict to v0.23.1 Update dependency bidict to v0.23.1 Mar 9, 2025
@renovate renovate bot force-pushed the renovate/bidict-0.x branch from 66b425b to 855c0f3 Compare March 17, 2025 13:40
@renovate renovate bot force-pushed the renovate/bidict-0.x branch from 855c0f3 to 453dd10 Compare April 8, 2025 14:32
@renovate renovate bot force-pushed the renovate/bidict-0.x branch from 453dd10 to 5c96f1a Compare May 7, 2025 13:02
@renovate renovate bot force-pushed the renovate/bidict-0.x branch from 5c96f1a to 1673146 Compare August 10, 2025 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant