Skip to content

Commit 0fd491d

Browse files
fix: corrected click context management in TutorCli, resolves #14
* Corrected Click context management in TutorCli * Code reformatted * added changelog entry
1 parent 734289b commit 0fd491d

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- [Improvement] This is a non-breaking change. Removed unnecessary command clearing in context parent, simplifying the context handling. (by @Abdul-Muqadim-Arbisoft)

tutorwebui/cli.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,6 @@ def shell() -> None:
116116
# Retrieve the current Click context. The context is used to manage the state
117117
# and pass around internal objects within the Click framework.
118118
ctx = click.get_current_context()
119-
if ctx.parent and ctx.parent.command:
120-
ctx.parent.command.commands = {} # type: ignore
121119

122120
while True:
123121
try:

0 commit comments

Comments
 (0)