Skip to content

Commit a44ff66

Browse files
yileicopybara-github
authored andcommitted
Make this code compatible with Python 3.10.
PiperOrigin-RevId: 473727127
1 parent 108060d commit a44ff66

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/tensorflow_docs/api_generator/parser_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"""Tests for documentation parser."""
1616

1717
import collections
18+
from collections import abc
1819
import dataclasses
1920
import inspect
2021
import textwrap
@@ -96,7 +97,7 @@ def class_method(cls):
9697
CLASS_MEMBER = 'a class member'
9798

9899

99-
class ConcreteMutableMapping(collections.MutableMapping):
100+
class ConcreteMutableMapping(abc.MutableMapping):
100101
"""MutableMapping subclass to repro getsource() IndexError."""
101102

102103
def __init__(self):

0 commit comments

Comments
 (0)