mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-10-21 21:37:11 +08:00
Improve Flake8 config (#1149)
This commit is contained in:
1 parent
abd0609f80
commit
29e2b65c8b
4 files changed
+14
-7
No files matched your search
@@ -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]`.
|
||||
"""
|
||||
Reference in new issue
Block a user