@@ -411,7 +411,7 @@ def __init__(
411411 self .max_completion_items = 50
412412
413413 # A dictionary mapping settable names to their Settable instance
414- self ._settables : dict [str , Settable ] = dict ()
414+ self ._settables : dict [str , Settable ] = {}
415415 self ._always_prefix_settables : bool = False
416416
417417 # CommandSet containers
@@ -438,7 +438,7 @@ def __init__(
438438 self .exclude_from_history = ['eof' , 'history' ]
439439
440440 # Dictionary of macro names and their values
441- self .macros : dict [str , Macro ] = dict ()
441+ self .macros : dict [str , Macro ] = {}
442442
443443 # Keeps track of typed command history in the Python shell
444444 self ._py_history : list [str ] = []
@@ -447,7 +447,7 @@ def __init__(
447447 self .py_bridge_name = 'app'
448448
449449 # Defines app-specific variables/functions available in Python shells and pyscripts
450- self .py_locals : dict [str , Any ] = dict ()
450+ self .py_locals : dict [str , Any ] = {}
451451
452452 # True if running inside a Python shell or pyscript, False otherwise
453453 self ._in_py = False
@@ -546,7 +546,7 @@ def __init__(
546546 # Commands that have been disabled from use. This is to support commands that are only available
547547 # during specific states of the application. This dictionary's keys are the command names and its
548548 # values are DisabledCommand objects.
549- self .disabled_commands : dict [str , DisabledCommand ] = dict ()
549+ self .disabled_commands : dict [str , DisabledCommand ] = {}
550550
551551 # If any command has been categorized, then all other commands that haven't been categorized
552552 # will display under this section in the help output.
@@ -2889,7 +2889,7 @@ def _redirect_output(self, statement: Statement) -> utils.RedirectionSavedState:
28892889 # Create pipe process in a separate group to isolate our signals from it. If a Ctrl-C event occurs,
28902890 # our sigint handler will forward it only to the most recent pipe process. This makes sure pipe
28912891 # processes close in the right order (most recent first).
2892- kwargs : dict [str , Any ] = dict ()
2892+ kwargs : dict [str , Any ] = {}
28932893 if sys .platform == 'win32' :
28942894 kwargs ['creationflags' ] = subprocess .CREATE_NEW_PROCESS_GROUP
28952895 else :
@@ -4238,7 +4238,7 @@ def do_shell(self, args: argparse.Namespace) -> None:
42384238 import signal
42394239 import subprocess
42404240
4241- kwargs : dict [str , Any ] = dict ()
4241+ kwargs : dict [str , Any ] = {}
42424242
42434243 # Set OS-specific parameters
42444244 if sys .platform .startswith ('win' ):
0 commit comments