`.get` conflicts with dict.get
Opened this issue · 1 comments
smac89 commented
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
EndermanAPM commented
Just use the md['a']
to access the value, you don't need the get() since Maybe is already handling null safety.