diff --git a/testing/src/scenario/state.py b/testing/src/scenario/state.py index 5d20ce56e..c8f3f6d76 100644 --- a/testing/src/scenario/state.py +++ b/testing/src/scenario/state.py @@ -1139,7 +1139,7 @@ def services(self) -> dict[str, pebble.ServiceInfo]: infos[name] = info return infos - def get_filesystem(self, ctx: Context) -> pathlib.Path: + def get_filesystem(self, ctx: Context[Any]) -> pathlib.Path: """Simulated Pebble filesystem in this context. Returns: @@ -1490,7 +1490,7 @@ def __eq__(self, other: object) -> bool: return (self.name, self.index) == (other.name, other.index) return False - def get_filesystem(self, ctx: Context) -> pathlib.Path: + def get_filesystem(self, ctx: Context[Any]) -> pathlib.Path: """Simulated filesystem root in this context.""" return ctx._get_storage_root(self.name, self.index)