@@ -411,7 +411,7 @@ def __init__(
411
411
self .max_completion_items = 50
412
412
413
413
# A dictionary mapping settable names to their Settable instance
414
- self ._settables : dict [str , Settable ] = dict ()
414
+ self ._settables : dict [str , Settable ] = {}
415
415
self ._always_prefix_settables : bool = False
416
416
417
417
# CommandSet containers
@@ -438,7 +438,7 @@ def __init__(
438
438
self .exclude_from_history = ['eof' , 'history' ]
439
439
440
440
# Dictionary of macro names and their values
441
- self .macros : dict [str , Macro ] = dict ()
441
+ self .macros : dict [str , Macro ] = {}
442
442
443
443
# Keeps track of typed command history in the Python shell
444
444
self ._py_history : list [str ] = []
@@ -447,7 +447,7 @@ def __init__(
447
447
self .py_bridge_name = 'app'
448
448
449
449
# 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 ] = {}
451
451
452
452
# True if running inside a Python shell or pyscript, False otherwise
453
453
self ._in_py = False
@@ -546,7 +546,7 @@ def __init__(
546
546
# Commands that have been disabled from use. This is to support commands that are only available
547
547
# during specific states of the application. This dictionary's keys are the command names and its
548
548
# values are DisabledCommand objects.
549
- self .disabled_commands : dict [str , DisabledCommand ] = dict ()
549
+ self .disabled_commands : dict [str , DisabledCommand ] = {}
550
550
551
551
# If any command has been categorized, then all other commands that haven't been categorized
552
552
# will display under this section in the help output.
@@ -2889,7 +2889,7 @@ def _redirect_output(self, statement: Statement) -> utils.RedirectionSavedState:
2889
2889
# Create pipe process in a separate group to isolate our signals from it. If a Ctrl-C event occurs,
2890
2890
# our sigint handler will forward it only to the most recent pipe process. This makes sure pipe
2891
2891
# processes close in the right order (most recent first).
2892
- kwargs : dict [str , Any ] = dict ()
2892
+ kwargs : dict [str , Any ] = {}
2893
2893
if sys .platform == 'win32' :
2894
2894
kwargs ['creationflags' ] = subprocess .CREATE_NEW_PROCESS_GROUP
2895
2895
else :
@@ -4238,7 +4238,7 @@ def do_shell(self, args: argparse.Namespace) -> None:
4238
4238
import signal
4239
4239
import subprocess
4240
4240
4241
- kwargs : dict [str , Any ] = dict ()
4241
+ kwargs : dict [str , Any ] = {}
4242
4242
4243
4243
# Set OS-specific parameters
4244
4244
if sys .platform .startswith ('win' ):
0 commit comments