Open besfahbod opened 5 years ago
I believe it could be enough to augment this library with a typing stub (.pyi), but I'm not that experienced with the matter. I think this could also be a candidate for a type stubs in the typeshed library
@Mattwmaster58 This project provides the typing stubs for the orderedset
package: https://github.com/rominf/ordered-set-stubs. But somehow the project was archived claiming that the typing stubs are now part of orderedset
itself, which does not appear to be the case. Any plan to include those stubs in the orderedset package in future releases?
@blumu I think the type stub you mentioned is intended for https://github.com/LuminosoInsight/ordered-set , another ordered set implementation. Not this one.
@MapleCCC You are right, my bad!
Are there any plans for type hint / mypy support?
1)
OrderedSet
is not a generic type, so it's not possible to useOrderedSet[str]
. 2) AnOrderedSet
of strings is not considered compatible withtyping.Set[str]
ortyping.Iterable[str]
, making it not sit well in type-hinted projects.