|
10 | 10 | import warnings |
11 | 11 | from collections.abc import Container, Iterator, Sequence |
12 | 12 | from threading import RLock |
13 | | -from typing import Any, Callable, Dict, List, Literal, Optional, Tuple, Union, Mapping |
| 13 | +from typing import Any, Callable, Literal, Optional, Tuple, Union, Mapping |
14 | 14 |
|
15 | 15 | import fsspec |
16 | 16 | import geopandas as gpd |
@@ -459,7 +459,7 @@ def _get_format_to_data_type_aliases_writers(self): |
459 | 459 |
|
460 | 460 | @classmethod |
461 | 461 | def _set_infos_from_extensions(cls, find_extensions, protocol=None) -> ( |
462 | | - Tuple)[Dict, Dict]: |
| 462 | + Tuple)[dict, dict]: |
463 | 463 | filename_ext_to_format = {} |
464 | 464 | format_to_data_type_aliases = {} |
465 | 465 | predicate = get_data_accessor_predicate(storage_id=protocol) |
@@ -673,7 +673,7 @@ def _get_extension(type_alias: str) -> list[Extension]: |
673 | 673 |
|
674 | 674 | def _guess_all_opener_id_parts( |
675 | 675 | self, data_id: str, data_type: DataTypeLike = None, require=True |
676 | | - ) -> List[tuple[str, str, str]]: |
| 676 | + ) -> list[tuple[str, str, str]]: |
677 | 677 | return self._guess_all_accessor_id_parts( |
678 | 678 | self._get_filename_ext_to_format_openers(), |
679 | 679 | self._get_format_to_data_type_aliases_openers(), |
@@ -701,7 +701,7 @@ def _guess_best_writer_id_parts( |
701 | 701 | def _guess_all_accessor_id_parts( |
702 | 702 | self, filename_ext_to_format, format_to_data_type_alias, |
703 | 703 | data_id: str, data_type: DataTypeLike = None, require=True |
704 | | - ) -> List[tuple[str, str, str]]: |
| 704 | + ) -> list[tuple[str, str, str]]: |
705 | 705 | assert_given(data_id, "data_id") |
706 | 706 | ext = self._get_filename_ext(data_id) |
707 | 707 | if data_type: |
@@ -881,7 +881,7 @@ def get_data_types(cls) -> tuple[str, ...]: |
881 | 881 | @classmethod |
882 | 882 | def get_filename_extensions( |
883 | 883 | cls, accessor_type: Literal["openers", "writers"] = "openers" |
884 | | - ) -> Mapping[str, List[str]]: |
| 884 | + ) -> Mapping[str, list[str]]: |
885 | 885 | """Returns a mapping from filename extensions to lists of |
886 | 886 | data accessor ids that open data from this format. |
887 | 887 |
|
|
0 commit comments