Skip to content

Commit a1115f5

Browse files
committed
Fix incorrect type annotation in core.command() definition
1 parent 034516d commit a1115f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

userland/core/command.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import sys
22
from optparse import OptionParser, Values
3-
from typing import Any, Callable
3+
from typing import Callable
44

55
from .users import OptionParserUsersMixin
66

@@ -41,7 +41,7 @@ def expect_nargs(self, args: list[str], nargs: int | tuple[int] | tuple[int, int
4141

4242
def command(parser: OptionParser | None = None):
4343
def create_utility(
44-
func: Callable[[Values, list[Any]], int],
44+
func: Callable[[Values, list[str]], int],
4545
) -> Callable[[], None]:
4646
def execute_utility():
4747
try:

0 commit comments

Comments
 (0)