Skip to content

Commit 039a9d9

Browse files
committed
Adjust format for 3.9
1 parent bb2d5e3 commit 039a9d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

infrahub_sdk/testing/repository.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def init(self) -> None:
6565

6666
self.repo.git.checkout(self.initial_branch)
6767

68-
async def add_to_infrahub(self, client: InfrahubClient, branch: str | None = None) -> dict:
68+
async def add_to_infrahub(self, client: InfrahubClient, branch: Optional[str] = None) -> dict:
6969
input_data = {
7070
"data": {
7171
"name": {"value": self.name},
@@ -84,7 +84,7 @@ async def add_to_infrahub(self, client: InfrahubClient, branch: str | None = Non
8484
)
8585

8686
async def wait_for_sync_to_complete(
87-
self, client: InfrahubClient, branch: str | None = None, interval: int = 5, retries: int = 6
87+
self, client: InfrahubClient, branch: Optional[str] = None, interval: int = 5, retries: int = 6
8888
) -> bool:
8989
for _ in range(retries):
9090
repo = await client.get(

0 commit comments

Comments
 (0)