diff --git a/pineappl_py/tests/test_evolution.py b/pineappl_py/tests/test_evolution.py
index cf25086e..f5627ad3 100644
--- a/pineappl_py/tests/test_evolution.py
+++ b/pineappl_py/tests/test_evolution.py
@@ -13,15 +13,16 @@
 from pineappl.grid import Grid, Order
 from pineappl.interpolation import Interp
 from pineappl.pids import PidBasis
+from typing import List
 
 
 class TestEvolution:
     def fake_grid(
         self,
-        channels: list[Channel],
-        orders: list[Order],
-        convolutions: list[Conv],
-        bins: list[float] = [1e-7, 1e-3, 1],
+        channels: List[Channel],
+        orders: List[Order],
+        convolutions: List[Conv],
+        bins: List[float] = [1e-7, 1e-3, 1],
     ) -> Grid:
         kinematics = [
             Kinematics(0),  # Scale
diff --git a/pineappl_py/tests/test_fk_table.py b/pineappl_py/tests/test_fk_table.py
index 4be4e278..cec07f7e 100644
--- a/pineappl_py/tests/test_fk_table.py
+++ b/pineappl_py/tests/test_fk_table.py
@@ -12,15 +12,16 @@
 from pineappl.import_subgrid import ImportSubgridV1
 from pineappl.interpolation import Interp
 from pineappl.pids import PidBasis
+from typing import List
 
 
 class TestFkTable:
     def fake_grid(
         self,
-        channels: list[Channel],
-        orders: list[Order],
-        convolutions: list[Conv],
-        bins: list[float] = [1e-7, 1e-3, 1],
+        channels: List[Channel],
+        orders: List[Order],
+        convolutions: List[Conv],
+        bins: List[float] = [1e-7, 1e-3, 1],
     ) -> Grid:
         kinematics = [
             Kinematics(0),  # Scale
diff --git a/pineappl_py/tests/test_grid.py b/pineappl_py/tests/test_grid.py
index f56cbfe3..49a4a26f 100644
--- a/pineappl_py/tests/test_grid.py
+++ b/pineappl_py/tests/test_grid.py
@@ -1,5 +1,6 @@
 import numpy as np
 import pytest
+
 from pineappl.bin import BinRemapper
 from pineappl.boc import Channel, Kinematics
 from pineappl.convolutions import Conv, ConvType
@@ -7,6 +8,7 @@
 from pineappl.import_subgrid import ImportSubgridV1
 from pineappl.interpolation import Interp
 from pineappl.pids import PidBasis
+from typing import List
 
 # Construct the type of convolutions and the convolution object
 # We assume unpolarized proton PDF
@@ -22,9 +24,9 @@
 class TestGrid:
     def fake_grid(
         self,
-        channels: list[Channel] = CHANNELS,
-        orders: list[Order] = ORDERS,
-        bins: list[float] = [1e-7, 1e-3, 1],
+        channels: List[Channel] = CHANNELS,
+        orders: List[Order] = ORDERS,
+        bins: List[float] = [1e-7, 1e-3, 1],
     ) -> Grid:
         # We assume symmetrical proton-proton in the initial state
         convolutions = [CONVOBJECT, CONVOBJECT]