Improve Flake8 config (#1149)

This commit is contained in:
Adam Johnson
2022-09-09 15:16:22 +01:00
committed by GitHub
parent abd0609f80
commit 29e2b65c8b
4 changed files with 14 additions and 7 deletions

View File

@@ -16,7 +16,8 @@ class Annotations(Generic[_Annotations]):
_T = TypeVar("_T", bound=Model)
WithAnnotations = Annotated[_T, Annotations[_Annotations]]
"""Alias to make it easy to annotate the model `_T` as having annotations `_Annotations` (a `TypedDict` or `Any` if not provided).
"""Alias to make it easy to annotate the model `_T` as having annotations
`_Annotations` (a `TypedDict` or `Any` if not provided).
Use as `WithAnnotations[MyModel]` or `WithAnnotations[MyModel, MyTypedDict]`.
"""