multiset
multiset copied to clipboard
TypeError: type 'FrozenMultiset' is not subscriptable
I'd like to be able to write type hints with generic typing in the form FrozenMultiset[T] but the interpreter complaints, Could you extend Generic[T] from the typing package and then write typeing for the methods?
I can open a PR if you prefer
Thank you for the issue, I would be happy to accept a PR for this. At the moment I don't have the capacity to work on it myself :)