Michael Lenzen
Michael Lenzen
TODO: * Run black * Add commit hash to .git-blame-ignore-revs * Document `git config blame.ignoreRevsFile .git-blame-ignore-revs`
``` collections_extended/bijection.py:38: error: Invalid index type "str" for "bijection[K, V]"; expected type "K" ``` Keyword args to `bijection.__init__` are always of type `str` and this may conflict with the declared...
Currently this mypy error is being suppressed: ``` collections_extended/range_map.py:166: error: Unsupported left operand type for
``` $ git grep travis docs/conf.py: 'travis_button': True, docs/index.rst:.. _`tested against`: https://travis-ci.org/mlenzen/collections-extended ```
Coveralls link was disabled with switch from TravisCI. * https://github.com/marketplace/actions/coveralls-github-action * https://docs.github.com/en/actions/guides/building-and-testing-python#testing-your-code
Sentinels are also instances of themselves, so you can use the Sentinel as a type decorator. For example: NOT_SET = Sentinel('not_set') def f(arg: Union[int, None, NOT_SET] = NOT_SET): pass https://stackoverflow.com/questions/10936125/python-an-object-can-be-its-own-type
Currently creates a new RangeMap from the values