Renderers: Fix python deprecation warnings

This commit is contained in:
Mike Auty
2020-06-27 18:34:43 +01:00
parent ac1d99677d
commit d28e573c18
2 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -9,9 +9,9 @@ renderer interface which can interact with a TreeGrid to produce
suitable output.
"""
import collections
import datetime
from abc import abstractmethod, ABCMeta
from collections import abc
from typing import Any, Callable, ClassVar, Generator, Iterable, List, NamedTuple, Optional, TypeVar, Type, Tuple, Union
Column = NamedTuple('Column', [('name', str), ('type', Any)])
@@ -46,7 +46,7 @@ class ColumnSortKey(metaclass = ABCMeta):
function."""
class TreeNode(collections.Sequence, metaclass = ABCMeta):
class TreeNode(abc.Sequence, metaclass = ABCMeta):
def __init__(self, path, treegrid, parent, values):
"""Initializes the TreeNode."""