We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6bca6e commit fac0ca5Copy full SHA for fac0ca5
README.md
@@ -607,14 +607,14 @@ You can have a look at the real-life [`Functor` interface](https://github.com/dr
607
>>> _NewFirstType = TypeVar('_NewFirstType')
608
609
>>> class Box(SupportKind1['Box', _FirstType], Functor[_FirstType]):
610
-... def __init__(self, inner_value: _FirstType) -> None:
611
-... self._inner_value = inner_value
612
-
613
->>> def map(
614
-... self,
615
-... function: Callable[[_FirstType], _NewFirstType],
616
-... ) -> 'Box[_NewFirstType]':
617
-... return Box(function(self._inner_value))
+... def __init__(self, inner_value: _FirstType) -> None:
+... self._inner_value = inner_value
+...
+... def map(
+... self,
+... function: Callable[[_FirstType], _NewFirstType],
+... ) -> 'Box[_NewFirstType]':
+... return Box(function(self._inner_value))
618
619
>>> assert Box(-5).map(abs) == Box(5)
620
>>>
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments