Skip to content

Commit

Permalink
Provide more detail in exception
Browse files Browse the repository at this point in the history
See microsoft/vscode-pylint#510 where this
exception arises.
  • Loading branch information
tamird committed Jun 12, 2024
1 parent da9b77b commit 1497d33
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pygls/feature_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,8 @@ def decorator(f):
raise TypeError(
(
f'Options of method "{feature_name}"'
f" should be instance of type {options_type}"
f" is instance of type {type(options)}"
f" which is not a subtype of {options_type}"
)
)
self._feature_options[feature_name] = options
Expand Down

0 comments on commit 1497d33

Please sign in to comment.