Skip to content

Commit

Permalink
Fix python 3.8 issues
Browse files Browse the repository at this point in the history
Signed-off-by: Jean-Christophe Morin <[email protected]>
  • Loading branch information
JeanChristopheMorinPerso committed Jan 18, 2025
1 parent 60e18a5 commit 652ada7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_download.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from __future__ import annotations

import os
import typing
import hashlib
import pathlib
import unittest.mock
Expand Down Expand Up @@ -29,7 +30,7 @@ def __init__(self, name: str, content: str, local: bool):


class Group:
def __init__(self, packages: list[Package]):
def __init__(self, packages: typing.List[Package]):
self.packages = packages

def getPackage(self, name: str) -> Package:
Expand All @@ -50,7 +51,7 @@ def getPackage(self, name: str) -> Package:
],
ids=["one-group-with-one-package", "multiple-groups-with-one-package"],
)
def test_download(groups: list[Group], tmp_path: pathlib.Path):
def test_download(groups: typing.List[Group], tmp_path: pathlib.Path):
sideEffects = tuple()
for group in groups:
for package in group.packages:
Expand Down

0 comments on commit 652ada7

Please sign in to comment.