Skip to content

Commit a1fbe88

Browse files
committed
Moving number under input_annotation
1 parent 2181284 commit a1fbe88

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

pyannotating.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,12 +196,14 @@ def __class_getitem__(cls, annotation_resource: tuple[Any, Any] | Any) -> Any:
196196
return annotation_resource[1]
197197

198198

199-
number: Final = int | float | complex
200199

201200
# Pre-created instance without permanent formal creation of a new one.
202201
input_annotation: Final[_InputAnnotationAnnotation] = _InputAnnotationAnnotation()
203202

204203

204+
number: Final = int | float | complex
205+
206+
205207
many_or_one: Final[AnnotationTemplate] = AnnotationTemplate(
206208
Union,
207209
[input_annotation, AnnotationTemplate(Iterable, [input_annotation])]

0 commit comments

Comments
 (0)