question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Update import for Mapping and OrderedDict

See original GitHub issue
/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

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10

github_iconTop GitHub Comments

26reactions
dominik-blncommented, Oct 6, 2020

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

1reaction
Siecjecommented, Nov 12, 2019

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

collections — Container datatypes
The underlying mappings are stored in a list. That list is public and can be accessed or updated using the maps attribute. There...
Read more >
In Python, how can you load YAML mappings as ...
Save this question. Show activity on this post. I'd like to get PyYAML's loader to load mappings (and ordered mappings) into the Python...
Read more >
OrderedDict in Python
A Python program to demonstrate working of key. # value change in OrderedDict. from collections import OrderedDict. print ( "Before:\n" ).
Read more >
Python OrderedDict
When we iterate over an OrderedDict, items are returned in the order they were inserted. A regular dictionary doesn't track the insertion order....
Read more >
OrderedDict vs dict in Python: The Right Tool for the Job
If you update the value of an existing key, then the order remains unchanged. ... In this case, you first import OrderedDict from...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found