mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-14 15:57:08 +08:00
Improve Flake8 config (#1149)
This commit is contained in:
@@ -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