Skip to content

Commit 06b4dd8

Browse files
committed
Remove unnecessary plugin activation overload
1 parent e44448c commit 06b4dd8

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/poetry_plugin_shell/plugins.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,10 @@
88

99

1010
if TYPE_CHECKING:
11-
from poetry.console.application import Application
1211
from poetry.console.commands.command import Command
1312

1413

1514
class ShellApplicationPlugin(ApplicationPlugin):
1615
@property
1716
def commands(self) -> list[type[Command]]:
1817
return [ShellCommand]
19-
20-
def activate(self, application: Application) -> None:
21-
# Removing the existing shell command to avoid an error
22-
# If you're checking this code out to get inspiration
23-
# for your own plugins: DON'T DO THIS!
24-
if application.command_loader.has("shell"):
25-
del application.command_loader._factories["shell"]
26-
super().activate(application=application)

0 commit comments

Comments
 (0)