@@ -194,15 +194,15 @@ another rational number, or from a string.
194
194
195
195
.. method :: __format__(format_spec, /)
196
196
197
- This method provides support for float-style formatting of
198
- :class: ` Fraction ` instances via the :meth: `str.format ` method, the
199
- :func: ` format ` built-in function, or :ref: `Formatted string literals
200
- <f-strings>`. The presentation types ``"e" ``, ``"E" ``, ``"f" ``, ``"F" ``,
201
- `` "g" ``, `` "G" `` and ``"%" `` are supported. For these presentation types,
202
- formatting for a :class: `Fraction ` object ``x `` behaves as though the
203
- object `` x `` were first converted to :class: `float ` and then formatted
204
- using the float formatting rules, but avoids the loss of precision that
205
- might arise as a result of that conversion.
197
+ Provides support for float-style formatting of :class: ` Fraction `
198
+ instances via the :meth: `str.format ` method, the :func: ` format ` built-in
199
+ function, or :ref: `Formatted string literals < f-strings >`. The
200
+ presentation types ``"e" ``, ``"E" ``, ``"f" ``, ``"F" ``, `` "g" ``, `` "G" ``
201
+ and ``"%" `` are supported. For these presentation types, formatting for a
202
+ :class: `Fraction ` object ``x `` behaves as though the object `` x `` were
203
+ first converted to :class: `float ` and then formatted using the float
204
+ formatting rules, but avoids the loss of precision that might arise as a
205
+ result of that conversion.
206
206
207
207
Here are some examples::
208
208
0 commit comments