slavaGanzin / ramda.py

Python clone of Ramda.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

map failed to work with 3.10

polybean opened this issue · comments

@curry
def map(f, xs):
    if isinstance(xs, collections.Mapping):
        return dict([(k, f(v)) for k, v in xs.items()])

    return [f(x) for x in xs]
AttributeError: module 'collections' has no attribute 'Mapping'
commented

@polybean Can you test that everything works for you now?
Update to 0.6.5