@@ -68,8 +68,8 @@ def remove(self, component: Component) -> None:
6868
6969 def is_composite (self ) -> bool :
7070 """
71- EN: You can provide a method that lets the client code figure out whether
72- a component can bear children.
71+ EN: You can provide a method that lets the client code figure out
72+ whether a component can bear children.
7373
7474 RU: Вы можете предоставить метод, который позволит клиентскому коду
7575 понять, может ли компонент иметь вложенные объекты.
@@ -80,8 +80,8 @@ def is_composite(self) -> bool:
8080 @abstractmethod
8181 def operation (self ) -> str :
8282 """
83- EN: The base Component may implement some default behavior or leave it to
84- concrete classes (by declaring the method containing the behavior as
83+ EN: The base Component may implement some default behavior or leave it
84+ to concrete classes (by declaring the method containing the behavior as
8585 "abstract").
8686
8787 RU: Базовый Компонент может сам реализовать некоторое поведение по
@@ -118,8 +118,8 @@ class Composite(Component):
118118 children and then "sum-up" the result.
119119
120120 RU: Класс Контейнер содержит сложные компоненты, которые могут иметь
121- вложенные компоненты. Обычно объекты Контейнеры делегируют фактическую работу
122- своим детям, а затем «суммируют» результат.
121+ вложенные компоненты. Обычно объекты Контейнеры делегируют фактическую
122+ работу своим детям, а затем «суммируют» результат.
123123 """
124124
125125 def __init__ (self ) -> None :
@@ -176,8 +176,8 @@ def client_code(component: Component) -> None:
176176def client_code2 (component1 : Component , component2 : Component ) -> None :
177177 """
178178 EN: Thanks to the fact that the child-management operations are declared in
179- the base Component class, the client code can work with any component, simple
180- or complex, without depending on their concrete classes.
179+ the base Component class, the client code can work with any component,
180+ simple or complex, without depending on their concrete classes.
181181
182182 RU: Благодаря тому, что операции управления потомками объявлены в базовом
183183 классе Компонента, клиентский код может работать как с простыми, так и со
0 commit comments