Skip to content

Commit 8d695fd

Browse files
committed
gh-92810: Fix linter errors
1 parent dd0d18c commit 8d695fd

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

Lib/_py_abc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def __subclasscheck__(cls, subclass):
144144
# Check if it's a subclass of a subclass (recursive)
145145
for scls in cls.__subclasses__():
146146
# If inside recursive issubclass check, avoid adding classes to any cache because this
147-
# may drastically increase memory usage.
147+
# may drastically increase memory usage.
148148
# Unfortunately, issubclass/__subclasscheck__ don't accept third argument with context,
149149
# so using global context within ABCMeta.
150150
# This is done only on first method call, others will use cached result.

Lib/test/test_abc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ def __subclasses__(cls):
503503

504504
class Parent2(metaclass=abc_ABCMeta):
505505
__subclasses__ = lambda: [A]
506-
506+
507507
# trigger caching
508508
for _ in range(2):
509509
self.assertIsInstance(A(), Parent1)

Modules/_abc.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -578,8 +578,6 @@ _abc__abc_register_impl(PyObject *module, PyObject *self, PyObject *subclass)
578578
if (result < 0) {
579579
return NULL;
580580
}
581-
582-
/* Actual registration */
583581
_abc_data *impl = _get_impl(module, self);
584582
if (impl == NULL) {
585583
return NULL;

0 commit comments

Comments
 (0)