pymaybe
pymaybe copied to clipboard
A Python implementation of the Maybe pattern
Thanks for the library! However, I encountered a bug. For example, the following code, I got TypeError: object of type 'bool' has no len(). It works with `obj.isVisible()`, but fails...
```py from pymaybe import maybe d=dict(a=23,b=43,c=dict(foo="bar")) md=maybe(d) md.get('a') ``` ### Error: > TypeError: get() takes 1 positional argument but 2 were given However ```py d.get('a') ``` ### Output: > 23
Bumps [wheel](https://github.com/pypa/wheel) from 0.23.0 to 0.38.1. Changelog Sourced from wheel's changelog. Release Notes UNRELEASED Updated vendored packaging to 22.0 0.38.4 (2022-11-09) Fixed PKG-INFO conversion in bdist_wheel mangling UTF-8 header values...
Fix: https://github.com/ekampf/pymaybe/issues/11 
Hey, just stumbled on this library when a friend recommended it to me. I like the syntax sugar, but I noticed it doesn't provide typehints, so the code I would...
- Kubuntu 18.04 x64 - Anaconda 3.6, `pip install pymaybe` - `maybe([None])[0].is_none()` is True. - `maybe([None])[0].get()` raises Exception, despite `[None][0]` is None. - `maybe({'a': None})['a'].get()` raises Exception, despite `{'a': None}['a']`...