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 a435b2b commit c5dd1d3Copy full SHA for c5dd1d3
README.md
@@ -34,11 +34,19 @@ What results in
34
Callable[[SomeCustomNumber | int, SomeCustomNumber], int]
35
```
36
37
-Ultimately you can annotate by the results of factories
+In addition, you can also annotate something regardless of its type
38
+```python
39
+even = FormalAnnotation("Formal annotation of even numbers.")
40
+
41
+number: even[int | float] = 42
42
+```
43
44
+Full example
45
```python
46
def some_operation_by(
- main: handler_of[int | float],
- *middleware: summator_of[SomeCustomNumber]
47
+ handler: handler_of[int | float],
48
+ number: even[float],
49
+ *middleware_handlers: summator_of[SomeCustomNumber]
50
) -> handler_of[int | float]:
51
...
52
0 commit comments