mewwts / addict

The Python Dict that's better than heroin.
MIT License
2.46k stars 132 forks source link

Add Python 3.9's merge operators `|` and `|=` support (#127) #128

Closed hl037 closed 4 years ago

hl037 commented 4 years ago

Add Python 3.9's merge operators | and |= support (#127 ) with passing tests.

The implementation simply uses the snippet provided in the PEP https://www.python.org/dev/peps/pep-0584/#reference-implementation

Also fixes the deprecated assertEquals of the unit tests

coveralls commented 4 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling 75164595c6dfb516c6328a61b9621fe6c63d264f on hl037:master into 66d88115001d32083e33f56c1b29d736a6d18560 on mewwts:master.