Skip to content

Commit 46e6b8a

Browse files
committed
chore: remove some unused code and correct linter
1 parent 31a11f2 commit 46e6b8a

File tree

3 files changed

+2
-10
lines changed

3 files changed

+2
-10
lines changed

packages/language_server/src/robotcode/language_server/common/parts/documents.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,6 @@ class LanguageServerDocumentError(JsonRPCException):
4747
pass
4848

4949

50-
class CantReadDocumentError(Exception):
51-
pass
52-
53-
5450
class TextDocumentProtocolPart(LanguageServerProtocolPart, DocumentsManager):
5551
__logger: Final = LoggingDescriptor()
5652

packages/language_server/src/robotcode/language_server/robotframework/parts/robot_workspace.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@
2626
from .protocol_part import RobotLanguageServerProtocolPart
2727

2828

29-
class CantReadDocumentError(Exception):
30-
pass
31-
32-
3329
class RobotWorkspaceProtocolPart(RobotLanguageServerProtocolPart):
3430
_logger = LoggingDescriptor()
3531

packages/plugin/src/robotcode/plugin/click_helper/types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
T = TypeVar("T", bound=Enum)
2121

2222

23-
class EnumChoice(click.Choice, Generic[T]):
23+
class EnumChoice(click.Choice, Generic[T]): # type: ignore[type-arg]
2424
"""A click.Choice that accepts Enum values."""
2525

2626
def __init__(
@@ -30,7 +30,7 @@ def __init__(
3030
excluded: Optional[Set[T]] = None,
3131
) -> None:
3232
super().__init__(
33-
choices if excluded is None else (set(choices).difference(excluded)), # type: ignore[arg-type]
33+
choices if excluded is None else (set(choices).difference(excluded)),
3434
case_sensitive,
3535
)
3636

0 commit comments

Comments
 (0)