Skip to content

Commit ded7523

Browse files
committed
lsp: Fix mypy error
1 parent b4342d8 commit ded7523

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/esbonio/esbonio/server/_configuration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
from . import Uri
1717

18-
T = TypeVar("T")
18+
T = TypeVar("T", bound=attrs.AttrsInstance)
1919

2020
if typing.TYPE_CHECKING:
2121
from collections.abc import Awaitable
@@ -91,7 +91,7 @@ def scope_fs_path(self) -> str | None:
9191
uri = Uri.parse(self.scope)
9292
return uri.fs_path
9393

94-
def expand(self, config: attrs.AttrsInstance) -> attrs.AttrsInstance:
94+
def expand(self, config: T) -> T:
9595
"""Expand any configuration variables in the given config value."""
9696
for name in attrs.fields_dict(type(config)):
9797
value = getattr(config, name)

0 commit comments

Comments
 (0)