You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was thinking about contributing to this library by adding some typehints since in python 3.10, you can use annotations so that tools like pyright or mypy can aid a developer in fixing and changing code in the longrun. I have a stubfile I wrote for the mpctools module as an example.
fromtypingimportCallable, Sequence, Anyimportoperator# unsure what runtime is but I'll figure it out...runtime: Any|None=NoneclassNoValueType(object):
__doc__:str|Nonedef__repr__(self) ->str: ...
_no_value: NoValueTypedefreduce(f:Callable[[int, int], int], x:Sequence[int], initial=_no_value) ->int: ...
defaccumulate(x:Sequence[int], f:Callable[[int, int], int] =operator.add, initial=_no_value) ->Iterator[int]: ...
Activity
Repository owner locked and limited conversation to collaborators on Jan 31, 2026
Activity