Skip to content

Commit 7ae4c79

Browse files
Ben-Regsebastinas
authored andcommitted
Not sure about forward_if_not_current() typing.
1 parent 8a292ed commit 7ae4c79

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bpython/cli.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
import struct
5353
import sys
5454
import time
55-
from typing import Iterator, NoReturn, List, MutableMapping, Any
55+
from typing import Iterator, NoReturn, List, MutableMapping, Any, Callable
5656
import unicodedata
5757
from dataclasses import dataclass
5858

@@ -118,9 +118,9 @@ def calculate_screen_lines(
118118
return lines
119119

120120

121-
def forward_if_not_current(func):
121+
def forward_if_not_current(func: Callable) -> Callable:
122122
@functools.wraps(func)
123-
def newfunc(self, *args, **kwargs):
123+
def newfunc(self, *args: Any, **kwargs: Any) -> Any:
124124
dest = self.get_dest()
125125
if self is dest:
126126
return func(self, *args, **kwargs)

0 commit comments

Comments
 (0)