Graphene: Update import for Mapping and OrderedDict

Created on 21 Aug 2019  路  7Comments  路  Source: graphql-python/graphene

/site-packages/graphene/types/field.py:2: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
  from collections import Mapping, OrderedDict

Most helpful comment

Any chance this could be released in the 2.* series? Since 3.0. is not yet released this is blocking our update to Python 3.9

All 7 comments

Has this issue been fixed?

Yes. https://github.com/graphql-python/graphene/blob/master/graphene/types/field.py#L2

I created the issue and then went to fix it and it was already correct.

Thanks! Just realized after taking a look. @Siecje

same issue. graphene: 2.1.8

=================================================================================== warnings summary ===================================================================================
/usr/local/lib/python3.7/site-packages/promise/promise_list.py:2
  /usr/local/lib/python3.7/site-packages/promise/promise_list.py:2: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
    from collections import Iterable

/usr/local/lib/python3.7/site-packages/graphene/types/field.py:2
  /usr/local/lib/python3.7/site-packages/graphene/types/field.py:2: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
    from collections import Mapping, OrderedDict

-- Docs: https://docs.pytest.org/en/latest/warnings.html

Confirmed, this is still happening in graphene 2.1.8 (using Python 3.8.1)

This is fixed in version 3.0 if you have a look at the tags.

Any chance this could be released in the 2.* series? Since 3.0. is not yet released this is blocking our update to Python 3.9

Was this page helpful?
0 / 5 - 0 ratings