Skip to content

Commit 55174bf

Browse files
committed
Better type hinting.
1 parent 7a63804 commit 55174bf

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

lib/iris/tests/unit/fileformats/nc_load_rules/helpers/test_build_oblique_mercator_coordinate_system.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,19 @@
77
Test function :func:`iris.fileformats._nc_load_rules.helpers.build_oblique_mercator_coordinate_system`.
88
99
"""
10-
from typing import List, NamedTuple
10+
from typing import List, NamedTuple, Type
1111
from unittest import mock
1212

1313
import pytest
1414

1515
from iris import coord_systems
1616
from iris._deprecation import IrisDeprecation
17-
from iris.coord_systems import GeogCS, ObliqueMercator, RotatedMercator
17+
from iris.coord_systems import (
18+
CoordSystem,
19+
GeogCS,
20+
ObliqueMercator,
21+
RotatedMercator,
22+
)
1823
from iris.fileformats._nc_load_rules.helpers import (
1924
build_oblique_mercator_coordinate_system,
2025
)
@@ -44,7 +49,7 @@ class TestAttributes:
4449
class ParamTuple(NamedTuple):
4550
id: str
4651
nc_attributes: dict
47-
expected_class: [ObliqueMercator, RotatedMercator]
52+
expected_class: Type[CoordSystem]
4853
coord_system_kwargs: dict
4954

5055
param_list: List[ParamTuple] = [

0 commit comments

Comments
 (0)