Skip to content

Commit

Permalink
Require importing PipClientHandler from its file (#45)
Browse files Browse the repository at this point in the history
Not exporting from the main `lsp_utils` export as importing the class
but not using it anywhere would trigger an error when LSP would try
to call class methods of such class.
  • Loading branch information
rchl authored Dec 3, 2020
1 parent 1cba719 commit 9d9bbd1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/source/client_handlers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ NpmClientHandler
PipClientHandler
----------------

.. autoclass:: lsp_utils.PipClientHandler
.. autoclass:: lsp_utils.pip_client_handler.PipClientHandler
4 changes: 1 addition & 3 deletions st3/lsp_utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from .api_wrapper_interface import ApiWrapperInterface
from .generic_client_handler import GenericClientHandler
from .npm_client_handler import NpmClientHandler
from .pip_client_handler import PipClientHandler
from .server_npm_resource import ServerNpmResource
from .server_pip_resource import ServerPipResource
from .server_resource_interface import ServerResourceInterface
Expand All @@ -15,9 +14,8 @@
'ClientHandler',
'GenericClientHandler',
'NpmClientHandler',
'PipClientHandler',
'ServerResourceInterface',
'ServerStatus'
'ServerStatus',
'ServerNpmResource',
'ServerPipResource',
'notification_handler',
Expand Down

0 comments on commit 9d9bbd1

Please sign in to comment.