Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions pyenumerable/protocol/_enumerable.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,9 @@ class Enumerable[TSource](
):
@property
def source(self) -> tuple[TSource, ...]: ...

def __str__(self) -> str:
return f"Enumerable(*{self.source})"

def __repr__(self) -> str:
return f"{self.__class__.__name__}(*{self.source})"
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ Implementation of .NET's [IEnumerable](https://learn.microsoft.com/en-us/dotnet/
- [x] Max
- [x] remove `Comparable` bind from type variables
- [x] Publish on pypi
- [x] Add external wrapper constructor
- [x] Add external constructor wrapper
- [x] Add technical documentation pure python implementation
- [ ] Implement `__str__` & `__repr__` for
- [x] Implement `__str__` & `__repr__` for
### v1.1.x
- [ ] Improve test code quality
- [ ] Add hashed pure python implementation of `Enumerable` (assuming inputs are guaranteed to be `Hashable` & immutable; not preserving order)