We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d732ef9 commit f071540Copy full SHA for f071540
pyndustri.pyi
@@ -1,5 +1,5 @@
1
from abc import ABC
2
-from typing import Iterator, Any, Callable
+from typing import Iterator, TypeVar, Callable
3
4
class Link:
5
"""Represents a link."""
@@ -707,8 +707,8 @@ def sleep(secs: float):
707
"""
708
Sleep for the given amount of seconds.
709
710
-
711
-def inline(func: Callable[..., Any]) -> Callable[..., Any]:
+T = TypeVar('T')
+def inline(func: Callable[..., T]) -> Callable[..., T]:
712
"""Compile the function by copy/pasting the code into each function call"""
713
714
def flip(a: int) -> int:
0 commit comments