Commit Graph

13 Commits

Author SHA1 Message Date
Joshua Bronson 2bee83b0d6 OrderedBidict pickling + minor code improvements
- Ensure that (un)pickling OrderedBidicts is order-preserving.
- Refactor __reduce__, _reduce_factory, and _init_from
  to use new private constructor _from_other.
- NamedBidictBase and GeneratedBidictInverse marker classes
  don't need to derive from BidictBase.
2022-02-16 10:38:37 -05:00
Joshua Bronson b5c9f346ce (c) 2022-02-15 15:37:25 -05:00
Joshua Bronson a239aa7917 Minor refactor. 2022-02-13 11:49:12 -05:00
Joshua Bronson 4f12c7f9eb Refine proxy logic for _OrderedBidictKeysView and _OrderedBidictItemsView 2022-02-12 14:59:03 -05:00
Joshua Bronson 2ab42ade03 Minor improvements, mostly to docs.
- Switch to Furo theme.
- Fix some links reported as broken by Sphinx's `make linkcheck`.
- No longer use autodoc private members. Avoids noisy Sphinx warnings.
- No longer generate duplicate section labels in Changelog.
  Avoids noisy Sphinx warnings.
- Remove logo, codecov badge, and add num-sponsors badge.
- Rename bidict._iter.iteritems_args_kw -> ...iteritems_args
2022-02-10 11:44:57 -05:00
Joshua Bronson 1c9d7bec53 Minor code and docs changes. 2022-02-07 11:42:09 -05:00
Joshua Bronson 03d6cbc118 Compute inverse lazily, automatically add or remove __reversed__ implementations for BidictBase subclasses based on whether their backing mappings are reversible, improve mechanism for automatic dynamic generation of inverse bidict classes and use this for namedbidict, improve pickling. 2022-02-06 12:28:12 -05:00
Joshua Bronson 2057c40c69 Refactor OrderedBidictBase._node_by_key/val to node_by_korv 2022-02-02 22:52:19 -05:00
Joshua Bronson f1493e0778 Use one_of rather than sampled_from in hypothesis tests. 2022-02-02 16:55:04 -05:00
Joshua Bronson 6be66a1e0b Refactor for better performance, code quality, and maintainability. 2022-02-02 14:58:06 -05:00
Joshua Bronson 5dc6d98381 Redesign OrderedBidict for better performance and code reuse. 2022-01-31 16:45:46 -05:00
Joshua Bronson 12a9acabb7 Improvements to bidict view methods and docs. 2022-01-06 19:54:46 -05:00
Joshua Bronson 2598ccb70d rename tests/properties -> tests/property_tests 2022-01-05 19:37:59 -05:00