_bidict.py 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # -*- coding: utf-8 -*-
  2. # Copyright 2018 Joshua Bronson. All Rights Reserved.
  3. #
  4. # This Source Code Form is subject to the terms of the Mozilla Public
  5. # License, v. 2.0. If a copy of the MPL was not distributed with this
  6. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
  7. #==============================================================================
  8. # * Welcome to the bidict source code *
  9. #==============================================================================
  10. # Doing a code review? You'll find a "Code review nav" comment like the one
  11. # below at the top and bottom of the most important source files. This provides
  12. # a suggested initial path through the source when reviewing.
  13. #
  14. # Note: If you aren't reading this on https://github.com/jab/bidict, you may be
  15. # viewing an outdated version of the code. Please head to GitHub to review the
  16. # latest version, which contains important improvements over older versions.
  17. #
  18. # Thank you for reading and for any feedback you provide.
  19. # * Code review nav *
  20. #==============================================================================
  21. # ← Prev: _mut.py Current: _bidict.py Next: _orderedbase.py →
  22. #==============================================================================
  23. """Provides :class:`bidict.bidict`, the mutable bidirectional map type."""
  24. from ._mut import _MutableBidict
  25. from ._proxied import _ProxiedKeysValsItems
  26. class bidict(_ProxiedKeysValsItems, _MutableBidict): # noqa: N801; pylint: disable=invalid-name
  27. """Mutable bidirectional map type."""
  28. __slots__ = ()
  29. # * Code review nav *
  30. #==============================================================================
  31. # ← Prev: _mut.py Current: _bidict.py Next: _orderedbase.py →
  32. #==============================================================================