Loading behave_utils/docker.py +3 −1 Original line number Diff line number Diff line Loading @@ -185,6 +185,8 @@ class Container(Item): exiting the context. """ T = TypeVar('T', bound='Container') DEFAULT_ALIASES = tuple[str]() def __init__( Loading Loading @@ -213,7 +215,7 @@ class Container(Item): if network: self.connect(network, *self.DEFAULT_ALIASES) def __enter__(self) -> Container: def __enter__(self: T) -> T: return self def __exit__(self, etype: type[BaseException], exc: BaseException, tb: TracebackType) -> None: Loading Loading
behave_utils/docker.py +3 −1 Original line number Diff line number Diff line Loading @@ -185,6 +185,8 @@ class Container(Item): exiting the context. """ T = TypeVar('T', bound='Container') DEFAULT_ALIASES = tuple[str]() def __init__( Loading Loading @@ -213,7 +215,7 @@ class Container(Item): if network: self.connect(network, *self.DEFAULT_ALIASES) def __enter__(self) -> Container: def __enter__(self: T) -> T: return self def __exit__(self, etype: type[BaseException], exc: BaseException, tb: TracebackType) -> None: Loading