@@ -111,7 +111,7 @@ def normalize_timestamp(self, value: str, coltype: TemporalType) -> str:
111111
112112 The returned expression must accept any SQL datetime/timestamp, and return a string.
113113
114- Date format: " YYYY-MM-DD HH:mm:SS.FFFFFF"
114+ Date format: `` YYYY-MM-DD HH:mm:SS.FFFFFF``
115115
116116 Precision of dates should be rounded up/down according to coltype.rounds
117117 """
@@ -123,18 +123,18 @@ def normalize_number(self, value: str, coltype: FractionalType) -> str:
123123
124124 The returned expression must accept any SQL int/numeric/float, and return a string.
125125
126- - Floats/Decimals are expected in the format
127- "I.P"
126+ Floats/Decimals are expected in the format
127+ "I.P"
128128
129- Where I is the integer part of the number (as many digits as necessary),
130- and must be at least one digit (0).
131- P is the fractional digits, the amount of which is specified with
132- coltype.precision. Trailing zeroes may be necessary.
133- If P is 0, the dot is omitted.
129+ Where I is the integer part of the number (as many digits as necessary),
130+ and must be at least one digit (0).
131+ P is the fractional digits, the amount of which is specified with
132+ coltype.precision. Trailing zeroes may be necessary.
133+ If P is 0, the dot is omitted.
134134
135- Note: This precision is different than the one used by databases. For decimals,
136- it's the same as ``numeric_scale``, and for floats, who use binary precision,
137- it can be calculated as ``log10(2**numeric_precision)``.
135+ Note: We use ' precision' differently than most databases. For decimals,
136+ it's the same as ``numeric_scale``, and for floats, who use binary precision,
137+ it can be calculated as ``log10(2**numeric_precision)``.
138138 """
139139 ...
140140
@@ -145,9 +145,11 @@ def normalize_value_by_type(self, value: str, coltype: ColType) -> str:
145145
146146 The default implementation dispatches to a method according to `coltype`:
147147
148- TemporalType -> normalize_timestamp()
148+ ::
149+
150+ TemporalType -> normalize_timestamp()
149151 FractionalType -> normalize_number()
150- *else* -> to_string()
152+ *else* -> to_string()
151153
152154 (`Integer` falls in the *else* category)
153155
0 commit comments