From 063ebd093b60220634d5e563e981d7709dc738d3 Mon Sep 17 00:00:00 2001 From: Adam Dyess Date: Fri, 22 Mar 2024 10:37:38 -0500 Subject: [PATCH] Adjust linting for BundleOpt --- .gitignore | 3 ++- pytest_operator/plugin.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 2d331f3..336015c 100644 --- a/.gitignore +++ b/.gitignore @@ -8,4 +8,5 @@ dist/ *.orig report .coverage -juju-crashdump* \ No newline at end of file +juju-crashdump* + diff --git a/pytest_operator/plugin.py b/pytest_operator/plugin.py index 3fae6c3..a11e674 100644 --- a/pytest_operator/plugin.py +++ b/pytest_operator/plugin.py @@ -404,7 +404,7 @@ class ModelInUseError(Exception): """Raise when trying to add a model alias which already exists.""" -BundleOpt = TypeVar("BundleOpt", str, Path, "OpsTest.Bundle") +BundleOpt = Union[str, Path, "OpsTest.Bundle"] Timeout = TypeVar("Timeout", float, int)