We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ba06fa4 + 1df6623 commit 5dff43dCopy full SHA for 5dff43d
1 file changed
freezegun/api.py
@@ -632,6 +632,13 @@ def __init__(
632
self.as_kwarg = as_kwarg
633
self.real_asyncio = real_asyncio
634
635
+ # mypy objects to this because Type is Callable, but Pytype needs it because
636
+ # (unlike mypy's) its inference does not assume class decorators always leave
637
+ # the type unchanged.
638
+ @overload
639
+ def __call__(self, func: Type[T2]) -> Type[T2]: # type: ignore[overload-overlap]
640
+ ...
641
+
642
@overload
643
def __call__(self, func: "Callable[P, Awaitable[Any]]") -> "Callable[P, Awaitable[Any]]":
644
...
0 commit comments