File tree Expand file tree Collapse file tree 5 files changed +16
-14
lines changed Expand file tree Collapse file tree 5 files changed +16
-14
lines changed Original file line number Diff line number Diff line change 145145
146146from __future__ import annotations
147147
148- # Do not import dataclasses; overhead is unacceptable (gh-117703)
149-
150- from collections .abc import Iterable , MutableMapping
151- from collections import ChainMap as _ChainMap
152148import contextlib
153149import functools
154- from .compat import io
155150import itertools
156151import os
157152import re
158153import sys
159154import types
155+ from collections import ChainMap as _ChainMap
156+
157+ # Do not import dataclasses; overhead is unacceptable (gh-117703)
158+ from collections .abc import Iterable , MutableMapping
159+
160+ from .compat import io
160161
161162__all__ = (
162163 "NoSectionError" ,
@@ -342,7 +343,7 @@ def combine(self, others):
342343 return self
343344
344345 @staticmethod
345- def _raise_all (exceptions : Iterable [' ParsingError' ]):
346+ def _raise_all (exceptions : Iterable [ParsingError ]):
346347 """
347348 Combine any number of ParsingErrors into one and raise it.
348349 """
Original file line number Diff line number Diff line change 1- import types
21import io as _io
2+ import types
33
44
55def text_encoding (encoding , stacklevel = 2 ): # pragma: no cover
Original file line number Diff line number Diff line change 1- import test .support # type: ignore[import-untyped, unused-ignore, import-not-found]
21import contextlib
2+ import pathlib
33import sys
44import types
5- import pathlib
5+
6+ import test .support # type: ignore[import-untyped, unused-ignore, import-not-found]
67
78
89def check__all__ (* args , ** kwargs ):
Original file line number Diff line number Diff line change 11import unittest
2+
23from backports import configparser
34
45
Original file line number Diff line number Diff line change 33import os
44import textwrap
55import unittest
6-
7- from typing import Type , Iterable
8-
9- from .compat import support , os_helper
6+ from collections .abc import Iterable
107
118from backports import configparser
129
10+ from .compat import os_helper , support
11+
1312
1413def nice_literals (str ):
1514 "Remove b and u prefixes from reprs"
@@ -44,7 +43,7 @@ class CfgParserTestCaseClass:
4443 comment_prefixes : Iterable [str ] = (';' , '#' )
4544 inline_comment_prefixes : Iterable [str ] = (';' , '#' )
4645 empty_lines_in_values = True
47- dict_type : Type [collections .abc .Mapping ] = configparser ._default_dict
46+ dict_type : type [collections .abc .Mapping ] = configparser ._default_dict
4847 strict = False
4948 default_section = configparser .DEFAULTSECT
5049 interpolation = configparser ._UNSET
You can’t perform that action at this time.
0 commit comments