Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⬆️ Update dependency bidict to >=0.23.1 #68

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 26, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
bidict (changelog) >=0.22.1 -> >=0.23.1 age adoption passing 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 force-pushed the renovate/bidict-0.x branch from 0f458da to ce03507 Compare March 30, 2024 16:26
@A-kirami A-kirami closed this Oct 23, 2024
@A-kirami A-kirami deleted the renovate/bidict-0.x branch October 23, 2024 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant