Arie Bovenberg

Results 48 issues of Arie Bovenberg

Although not part of the official API, I find `add_slots` to be quite useful. However, the combination with frozen dataclasses and pickling causes problems: ```python @add_slots @dataclass(frozen=True) class ExampleDataclass: foo:...

Have you considered adding some handy utility functions to `Maybe` and `Result`? In using `returns` I'm missing many helpful methods you can find in Rust, for example. Adding a few...

enhancement

related: #874, #592 Python has a [rich set of container interfaces](https://docs.python.org/3/library/collections.abc.html), like `__iter__`, `__len__`, `__contains__`, and others. **could we treat `Maybe` as a collection (i.e. one containing 0 or 1...

## Summary of changes Closes #1186 ### Pull Request Checklist - [x] ~~Changes have tests~~ n/a (see questions below) - [x] Authors have been added to [AUTHORS.md](https://github.com/dateutil/dateutil/blob/master/AUTHORS.md) - [x] News...

Both `_tzparser._result` and `parser._result` have slots and inherit from `_resultbase`, which does not have slots. This reduces the memory savings from `__slots__`, and doesn't prevent `__dict__` from being created. solution:...

When the library was originally written, python 2 still needed support. Now that it is off the table, we can use proper type annotations 🎉

enhancement

For some cases, streaming requests and responses could be useful. E.g. downloading a file.

enhancement

It is possible to implement a method chaining API, with: ```python class Explorer: def __init__(self, obj, *, executor=execute): self.__wrapped__ = obj self._executor = executor def execute(self, **kwargs): """execute the wrapped...

enhancement

Release checklist - [x] Issue(s) referenced (optional) - [ ] Implementation done - [ ] Changelog updated - [ ] Version bump in `__about__.py` - [ ] CI checks OK...

work in progress

Now that Python2 support is dropped, it is possible to check type annotations with `mypy`

enhancement