mirror of
https://github.com/Hopiu/django-modeltranslation.git
synced 2026-03-16 22:10:31 +00:00
parent
ec886d6492
commit
13af637d87
1 changed files with 2 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
|||
from __future__ import annotations
|
||||
|
||||
import sys
|
||||
from typing import Literal, TypeVar
|
||||
from typing import Literal, TypeVar, Union
|
||||
|
||||
from django.contrib import admin
|
||||
from django.contrib.admin.options import BaseModelAdmin
|
||||
|
|
@ -16,7 +16,7 @@ AutoPopulate: TypeAlias = "bool | Literal['all', 'default', 'required']"
|
|||
_K = TypeVar("_K")
|
||||
|
||||
# See https://github.com/typeddjango/django-stubs/blob/082955/django-stubs/utils/datastructures.pyi#L12-L14
|
||||
_ListOrTuple: TypeAlias = "list[_K] | tuple[_K, ...]"
|
||||
_ListOrTuple: TypeAlias = Union[list[_K], tuple[_K, ...]]
|
||||
|
||||
|
||||
# https://github.com/typeddjango/django-stubs/tree/master/django_stubs_ext
|
||||
|
|
|
|||
Loading…
Reference in a new issue