pymaybe
pymaybe copied to clipboard
`.get` conflicts with dict.get
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
d.get('a')
Output:
23
Just use the md['a']
to access the value, you don't need the get() since Maybe is already handling null safety.