Skip to content

Commit 2243773

Browse files
committed
remove unnecessary private class
1 parent 26087f2 commit 2243773

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

django_typer/management/__init__.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2499,26 +2499,6 @@ def flush(self):
24992499
super().flush()
25002500

25012501

2502-
class _CommandResult:
2503-
"""
2504-
A container for result objects - we use this to make TyperCommand.print_result with
2505-
minimal impact to BaseCommand.
2506-
"""
2507-
2508-
result: t.Any
2509-
print_result: bool
2510-
2511-
def __init__(self, result, print_result):
2512-
self.result = result
2513-
self.print_result = print_result
2514-
2515-
def __str__(self):
2516-
return str(self.result)
2517-
2518-
def __bool__(self):
2519-
return self.print_result and bool(self.result)
2520-
2521-
25222502
class TyperCommand(BaseCommand, metaclass=TyperCommandMeta):
25232503
"""
25242504
An extension of BaseCommand_ that uses the Typer_ library to parse

0 commit comments

Comments
 (0)