From 1696cf109827901b81f8bc1f5d9307a20f224f8f Mon Sep 17 00:00:00 2001 From: Kevin Van Brunt Date: Thu, 25 Mar 2021 18:27:29 -0400 Subject: Fixed type hints --- cmd2/cmd2.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py index b04b7771..c91fb4db 100644 --- a/cmd2/cmd2.py +++ b/cmd2/cmd2.py @@ -48,9 +48,6 @@ from collections import ( from contextlib import ( redirect_stdout, ) -from pathlib import ( - Path, -) from types import ( ModuleType, ) @@ -223,9 +220,9 @@ class Cmd(cmd.Cmd): stdin: Optional[TextIO] = None, stdout: Optional[TextIO] = None, *, - persistent_history_file: Path = '', + persistent_history_file: str = '', persistent_history_length: int = 1000, - startup_script: Path = '', + startup_script: str = '', silent_startup_script: bool = False, use_ipython: bool = False, allow_cli_args: bool = True, -- cgit v1.2.1