We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4342d8 commit ded7523Copy full SHA for ded7523
lib/esbonio/esbonio/server/_configuration.py
@@ -15,7 +15,7 @@
15
16
from . import Uri
17
18
-T = TypeVar("T")
+T = TypeVar("T", bound=attrs.AttrsInstance)
19
20
if typing.TYPE_CHECKING:
21
from collections.abc import Awaitable
@@ -91,7 +91,7 @@ def scope_fs_path(self) -> str | None:
91
uri = Uri.parse(self.scope)
92
return uri.fs_path
93
94
- def expand(self, config: attrs.AttrsInstance) -> attrs.AttrsInstance:
+ def expand(self, config: T) -> T:
95
"""Expand any configuration variables in the given config value."""
96
for name in attrs.fields_dict(type(config)):
97
value = getattr(config, name)
0 commit comments