From d0de52c7a9a2900f0d44d8776a8e8dc81345ba53 Mon Sep 17 00:00:00 2001 From: Maxim Ivanov Date: Thu, 12 Dec 2024 18:15:29 +0700 Subject: [PATCH 1/3] Fix typo in concept.rst --- docs/pages/concept.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/pages/concept.rst b/docs/pages/concept.rst index 54c6a5d..78ed7f8 100644 --- a/docs/pages/concept.rst +++ b/docs/pages/concept.rst @@ -27,7 +27,7 @@ To use typeclasses you should understand these steps: F2 --> F3["Calling"] Let's walk through this process step by step. -The first on is "Typeclass definition", where we create a new typeclass: +The first one is "Typeclass definition", where we create a new typeclass: .. code:: python From b437a5c865570ebbfcd3d33782a5382991a9661e Mon Sep 17 00:00:00 2001 From: Maxim Ivanov Date: Thu, 12 Dec 2024 18:15:29 +0700 Subject: [PATCH 2/3] Fix grammar: add missing pronoun Either or: - It allows one/us to do something - It allows doing something --- docs/pages/concept.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/pages/concept.rst b/docs/pages/concept.rst index 78ed7f8..f8902a6 100644 --- a/docs/pages/concept.rst +++ b/docs/pages/concept.rst @@ -174,7 +174,7 @@ This registry is using ``isinstance`` function to find handler that fits the defined predicate. It has the highest priority among other dispatch methods. -This allows to sync both runtime and ``mypy`` behavior: +This allows us to sync both runtime and ``mypy`` behavior: .. code:: python From 94f25a029a48ba134218ffea55bcf5a35c068b1c Mon Sep 17 00:00:00 2001 From: Maxim Ivanov Date: Thu, 12 Dec 2024 18:15:29 +0700 Subject: [PATCH 3/3] Fix typo in define --- docs/pages/concept.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/pages/concept.rst b/docs/pages/concept.rst index f8902a6..c2e7a0d 100644 --- a/docs/pages/concept.rst +++ b/docs/pages/concept.rst @@ -361,7 +361,7 @@ Overriding and extending existing instances Sometimes we really need to override how things work. With objects and classes this can be problematic, -because we would need to definie a new subclass +because we would need to define a new subclass and chances are that it won't be used in some situations. With ``@typeclass`` overriding something is as easy.