|
1 | 1 | """Main module of the 'objects' subpackage containing most classes."""
|
2 | 2 |
|
| 3 | +from __future__ import annotations |
| 4 | + |
3 | 5 | from pathlib import Path
|
4 |
| -from typing import Dict, Union |
| 6 | +from typing import Union |
5 | 7 |
|
6 | 8 | StrLike = Union[str, bytes]
|
7 | 9 | FilePath = Union[str, Path]
|
@@ -170,18 +172,18 @@ def connection(self, value: str | ERDDAPConnection):
|
170 | 172 | """Set private ._connection attribute."""
|
171 | 173 | self._connection = ERDDAPConnection(ERDDAPConnection.to_string(value))
|
172 | 174 |
|
173 |
| - def full_text_search(self, query: str) -> Dict[str, ERDDAPDataset]: |
| 175 | + def full_text_search(self, query: str) -> dict[str, ERDDAPDataset]: |
174 | 176 | """Search the server with native ERDDAP full text search capabilities."""
|
175 | 177 | pass
|
176 | 178 |
|
177 |
| - def search(self, query: str) -> Dict[str, ERDDAPDataset]: |
| 179 | + def search(self, query: str) -> dict[str, ERDDAPDataset]: |
178 | 180 | """
|
179 | 181 | Search the server with native ERDDAP full text search capabilities.
|
180 | 182 |
|
181 | 183 | Also see ERDDAPServer.full_text_search.
|
182 | 184 | """
|
183 | 185 | return self.full_text_search(query)
|
184 | 186 |
|
185 |
| - def advanced_search(self, **kwargs) -> Dict[str, ERDDAPDataset]: |
| 187 | + def advanced_search(self, **kwargs) -> dict[str, ERDDAPDataset]: |
186 | 188 | """Search server with ERDDAP advanced search capabilities (may return pre-filtered datasets)."""
|
187 | 189 | pass
|
0 commit comments