Skip to content

Commit 3f5c372

Browse files
committed
Fixes spelling
1 parent cc9bd15 commit 3f5c372

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

classes/_registry.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66

77
def choose_registry( # noqa: WPS211
8-
# It has multiple argumnets, but I don't see an easy and performant way
8+
# It has multiple arguments, but I don't see an easy and performant way
99
# to refactor it: I don't want to create extra structures
1010
# and I don't want to create a class with methods.
1111
typ: type,
@@ -30,7 +30,7 @@ def choose_registry( # noqa: WPS211
3030
if is_concrete:
3131
# This means that this type has `__instancecheck__` defined,
3232
# which allows dynamic checks of what `isinstance` of this type.
33-
# That's why we also treat this type as a conrete.
33+
# That's why we also treat this type as a concrete.
3434
return concretes
3535
return instances
3636

classes/_typeclass.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ def __call__(
418418
And all typeclasses that match ``Callable[[int, int], int]`` signature
419419
will typecheck.
420420
"""
421-
# At first, we try all our conrete types,
421+
# At first, we try all our concrete types,
422422
# we don't cache it, because we cannot.
423423
# We only have runtime type info: `type([1]) == type(['a'])`.
424424
# It might be slow!

tests/test_typeclass/test_call.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def _my_len_object(instance: object) -> int:
4747
@pytest.mark.parametrize('check_supports', [True, False])
4848
@pytest.mark.parametrize('clear_supports_cache', [True, False])
4949
@pytest.mark.parametrize(('data_type', 'expected'), [
50-
(['a', 'b'], 0), # conrete type
50+
(['a', 'b'], 0), # concrete type
5151
([], 1), # direct list call
5252
([1, 2, 3], 1), # direct list call
5353
('', 2), # sized protocol

0 commit comments

Comments
 (0)