Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3b05327

Browse files
committed
Replace deprecated from typing import Callable
1 parent 99ddc67 commit 3b05327

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

userland/core/command.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import sys
2+
from collections.abc import Callable
23
from optparse import OptionParser, Values
3-
from typing import Callable
44

55
from .users import OptionParserUsersMixin
66

userland/utilities/cut.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import sys
2-
from typing import BinaryIO, Callable, Iterable, cast
2+
from collections.abc import Callable
3+
from typing import BinaryIO, Iterable, cast
34

45
from .. import core
56

userland/utilities/readlink.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
from collections.abc import Callable
12
from pathlib import Path
2-
from typing import Callable, Literal
3+
from typing import Literal
34

45
from .. import core
56

userland/utilities/truncate.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import operator
2+
from collections.abc import Callable
23
from pathlib import Path
3-
from typing import Callable
44

55
from tqdm import tqdm
66

0 commit comments

Comments
 (0)