py-enumerable icon indicating copy to clipboard operation
py-enumerable copied to clipboard

Consider typing

Open cleoold opened this issue 4 years ago • 3 comments

Adding type annotations to the library would be helpful for those into type checking. This can avoid type errors.

I can create separate PRs for this as it is simple enough :-) Do you think this is a good idea?

cleoold avatar Dec 22 '20 23:12 cleoold

Because I couldn't get the author to reply me :-| I wrapped up my own library that has similar usage to py-enumerable, except it has fully typed interface and really lazy evaluations (e.g. py-enumerable does not support infinite streams).

cleoold avatar Jan 22 '21 07:01 cleoold

@cleoold Apologies for this. I never received a notification that this issue was even created and just noticed this today.

I think this is an acceptable request given that py-enumerable is really only supporting 3.9, 3.8, 3.7 now and typing is already baked in these Python versions. I actually was thinking of doing this myself already actually. I will have a look at your work and attempt to incorporate into py-enumerable.

viralogic avatar Apr 27 '21 22:04 viralogic

https://github.com/jakkes/python-linq has typing.

mokeyish avatar Jul 28 '21 07:07 mokeyish