diff options
author | S. Solomon Darnell | 2025-03-28 21:52:21 -0500 |
---|---|---|
committer | S. Solomon Darnell | 2025-03-28 21:52:21 -0500 |
commit | 4a52a71956a8d46fcb7294ac71734504bb09bcc2 (patch) | |
tree | ee3dc5af3b6313e921cd920906356f5d4febc4ed /.venv/lib/python3.12/site-packages/pydash/types.py | |
parent | cc961e04ba734dd72309fb548a2f97d67d578813 (diff) | |
download | gn-ai-master.tar.gz |
Diffstat (limited to '.venv/lib/python3.12/site-packages/pydash/types.py')
-rw-r--r-- | .venv/lib/python3.12/site-packages/pydash/types.py | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/.venv/lib/python3.12/site-packages/pydash/types.py b/.venv/lib/python3.12/site-packages/pydash/types.py new file mode 100644 index 00000000..a909677c --- /dev/null +++ b/.venv/lib/python3.12/site-packages/pydash/types.py @@ -0,0 +1,30 @@ +""" +Common types. + +.. versionadded:: 7.0.0 +""" + +from __future__ import annotations + +from decimal import Decimal +import typing as t + +from typing_extensions import Protocol + + +IterateeObjT = t.Union[int, str, t.List[t.Any], t.Tuple[t.Any, ...], t.Dict[t.Any, t.Any]] +NumberT = t.Union[float, int, Decimal] +NumberNoDecimalT = t.Union[float, int] +PathT = t.Union[t.Hashable, t.List[t.Hashable]] + + +_T_co = t.TypeVar("_T_co", covariant=True) +_T_contra = t.TypeVar("_T_contra", contravariant=True) + + +class SupportsMul(Protocol[_T_contra, _T_co]): + def __mul__(self, x: _T_contra) -> _T_co: ... + + +class SupportsRound(Protocol[_T_co]): + def __round__(self) -> _T_co: ... |