Fix type annotation (#144)

fix type annotation

Co-authored-by: wangzy <wangziyi@pjlab.org.cn>
This commit is contained in:
BraisedPork
2024-02-02 11:19:45 +08:00
committed by GitHub
parent 5650a75f3e
commit aa5a357a34

View File

@@ -3,7 +3,7 @@ from contextlib import redirect_stdout
from dataclasses import dataclass
from enum import Enum
from io import StringIO
from typing import Optional
from typing import Optional, Type
import json5
from IPython import InteractiveShell
@@ -51,7 +51,7 @@ class IPythonInteractive(BaseAction):
max_out_len: int = 2048,
use_signals: bool = True,
description: Optional[dict] = None,
parser: type[BaseParser] = JsonParser,
parser: Type[BaseParser] = JsonParser,
enable: bool = True,
):
super().__init__(description, parser, enable)