Skip to content

Commit b1de80e

Browse files
committed
Use abstract base classes from collections.abc
1 parent b004c2d commit b1de80e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/pathlib/types.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@
1111

1212

1313
from abc import ABC, abstractmethod
14+
from collections.abc import Callable, Iterator, Sequence
1415
from glob import _PathGlobber
1516
from pathlib._os import magic_open, ensure_distinct_paths, ensure_different_files, copyfileobj
1617
from pathlib import PurePath, Path
1718
from typing import (
18-
Any, BinaryIO, Callable, Generator, Iterator, Literal, Optional, Protocol, Self, Sequence, TypeVar,
19+
Any, BinaryIO, Literal, Optional, Protocol, Self, TypeVar,
1920
runtime_checkable,
2021
)
2122

0 commit comments

Comments
 (0)