2021-03-29 03:24:13 +05:30
|
|
|
# Released under the MIT License. See LICENSE for details.
|
|
|
|
|
#
|
|
|
|
|
"""Call related functionality shared between all efro components."""
|
|
|
|
|
|
|
|
|
|
from __future__ import annotations
|
|
|
|
|
|
2021-11-10 17:26:07 +05:30
|
|
|
import functools
|
2024-11-28 00:23:35 +05:30
|
|
|
from typing import TYPE_CHECKING
|
2021-03-29 03:24:13 +05:30
|
|
|
|
|
|
|
|
if TYPE_CHECKING:
|
2024-11-28 00:23:35 +05:30
|
|
|
pass
|
2021-03-29 03:24:13 +05:30
|
|
|
|
2024-11-28 00:23:35 +05:30
|
|
|
# TODO: should deprecate tpartial since it nowadays simply wraps
|
|
|
|
|
# functools.partial (mypy added support for functools.partial in 1.11 so
|
|
|
|
|
# there's no benefit to rolling our own type-safe version anymore).
|
|
|
|
|
# Perhaps we can use Python 13's @warnings.deprecated() stuff for this.
|
|
|
|
|
tpartial = functools.partial
|