Skip to content

Commit 2c33676

Browse files
Apply ruff/pyupgrade rule UP035
UP035 Import from `collections.abc` instead: `Callable` Co-authored-by: Matti Picus <[email protected]>
1 parent 317ee65 commit 2c33676

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/cffi/api.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,6 @@
33
from .error import CDefError
44
from . import model
55

6-
try:
7-
callable
8-
except NameError:
9-
# Python 3.1
10-
from collections import Callable
11-
callable = lambda x: isinstance(x, Callable)
12-
136
try:
147
basestring
158
except NameError:

0 commit comments

Comments
 (0)