Skip to content

Commit

Permalink
Fix warning regarding ABC import from collections (#825)
Browse files Browse the repository at this point in the history
  • Loading branch information
tirkarthi authored Sep 14, 2020
1 parent d184697 commit e39d8fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions astroid/brain/brain_fstrings.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Licensed under the LGPL: https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html
# For details: https://github.com/PyCQA/astroid/blob/master/COPYING.LESSER
import collections
import collections.abc
import sys

import astroid
Expand All @@ -19,7 +19,7 @@ def _clone_node_with_lineno(node, parent, lineno):
new_node = cls(**init_params)
if hasattr(node, "postinit") and _astroid_fields:
for param, child in postinit_params.items():
if child and not isinstance(child, collections.Sequence):
if child and not isinstance(child, collections.abc.Sequence):
cloned_child = _clone_node_with_lineno(
node=child, lineno=new_node.lineno, parent=new_node
)
Expand Down

0 comments on commit e39d8fe

Please sign in to comment.