Skip to content

Commit

Permalink
Added missing TypeForm definition
Browse files Browse the repository at this point in the history
  • Loading branch information
sveinugu committed Apr 22, 2024
1 parent 5d8981e commit 5effd6a
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/omnipy/api/typedefs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
from typing import Callable, TypeAlias, TypeVar
from types import UnionType
from typing import (_AnnotatedAlias,
_GenericAlias,
_LiteralGenericAlias,
_SpecialForm,
_UnionGenericAlias,
Callable,
TypeAlias,
TypeVar)

GeneralDecorator = Callable[[Callable], Callable]
LocaleType: TypeAlias = str | tuple[str | None, str | None]
Expand All @@ -10,3 +18,6 @@
TaskTemplateT = TypeVar('TaskTemplateT')
TaskTemplateContraT = TypeVar('TaskTemplateContraT', contravariant=True)
TaskTemplateCovT = TypeVar('TaskTemplateCovT', covariant=True)

# TODO: While waiting for https://github.com/python/mypy/issues/9773
TypeForm: TypeAlias = type | UnionType | _UnionGenericAlias | _AnnotatedAlias | _GenericAlias | _LiteralGenericAlias | _SpecialForm

0 comments on commit 5effd6a

Please sign in to comment.