Skip to content

Commit 2ac9538

Browse files
committed
make load command extensions function private
1 parent e6d0f97 commit 2ac9538

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

django_typer/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
called_from_module,
129129
get_usage_script,
130130
is_method,
131-
load_command_extensions,
131+
_load_command_extensions,
132132
traceback_config,
133133
with_typehint,
134134
)
@@ -2869,7 +2869,7 @@ def __init__(
28692869
**kwargs,
28702870
):
28712871
assert self.typer_app.info.name
2872-
load_command_extensions(self.typer_app.info.name)
2872+
_load_command_extensions(self.typer_app.info.name)
28732873
_add_common_initializer(self)
28742874
_resolve_help(self)
28752875

django_typer/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
"get_current_command",
2525
"with_typehint",
2626
"register_command_extensions",
27-
"load_command_extensions",
2827
"called_from_module",
28+
"called_from_command_definition",
2929
]
3030

3131

@@ -142,7 +142,7 @@ def ready(self):
142142
_command_extensions[command].append(package)
143143

144144

145-
def load_command_extensions(command: str) -> int:
145+
def _load_command_extensions(command: str) -> int:
146146
"""
147147
Load any extensions for the given command by loading the registered
148148
modules in registration order.

0 commit comments

Comments
 (0)