|
40 | 40 | from os.path import relpath as path_relpath |
41 | 41 | from pathlib import Path as pathlib_Path |
42 | 42 | from sys import version_info |
43 | | -from typing import Dict, Union, Optional as Nullable, List, Iterable, Generator, Tuple, Any as typing_Any, Type, Set, Any |
| 43 | +from typing import Dict, Union, Optional as Nullable, List, Iterable, Generator, Tuple, Any as typing_Any, Type, Set, Self |
44 | 44 |
|
45 | 45 | from pyTooling.Common import getFullyQualifiedName |
46 | 46 | from pyTooling.Decorators import export |
@@ -259,7 +259,7 @@ def __len__(self) -> int: |
259 | 259 | """ |
260 | 260 | return len(self._attributes) |
261 | 261 |
|
262 | | - def __getitem__(self, key: Type[Attribute]) -> Any: |
| 262 | + def __getitem__(self, key: Type[Attribute]) -> typing_Any: |
263 | 263 | """Index access for returning attributes on this file. |
264 | 264 |
|
265 | 265 | :param key: The attribute type. |
@@ -1077,7 +1077,7 @@ def __len__(self) -> int: |
1077 | 1077 | """ |
1078 | 1078 | return len(self._attributes) |
1079 | 1079 |
|
1080 | | - def __getitem__(self, key: Type[Attribute]) -> Any: |
| 1080 | + def __getitem__(self, key: Type[Attribute]) -> typing_Any: |
1081 | 1081 | """Index access for returning attributes on this fileset. |
1082 | 1082 |
|
1083 | 1083 | :param key: The attribute type. |
@@ -1138,7 +1138,7 @@ class VHDLLibrary(metaclass=ExtendedType, slots=True): |
1138 | 1138 | _files: List[File] |
1139 | 1139 | _vhdlVersion: VHDLVersion |
1140 | 1140 |
|
1141 | | - _attributes: Dict[Attribute, Any] |
| 1141 | + _attributes: Dict[Attribute, typing_Any] |
1142 | 1142 | _dependencyNode: Vertex |
1143 | 1143 |
|
1144 | 1144 | def __init__( |
@@ -1282,7 +1282,7 @@ def __len__(self) -> int: |
1282 | 1282 | """ |
1283 | 1283 | return len(self._attributes) |
1284 | 1284 |
|
1285 | | - def __getitem__(self, key: Type[Attribute]) -> Any: |
| 1285 | + def __getitem__(self, key: Type[Attribute]) -> typing_Any: |
1286 | 1286 | """Index access for returning attributes on this VHDL library. |
1287 | 1287 |
|
1288 | 1288 | :param key: The attribute type. |
@@ -1640,7 +1640,7 @@ def __len__(self) -> int: |
1640 | 1640 | """ |
1641 | 1641 | return len(self._attributes) |
1642 | 1642 |
|
1643 | | - def __getitem__(self, key: Type[Attribute]) -> Any: |
| 1643 | + def __getitem__(self, key: Type[Attribute]) -> typing_Any: |
1644 | 1644 | """Index access for returning attributes on this design. |
1645 | 1645 |
|
1646 | 1646 | :param key: The attribute type. |
@@ -1832,7 +1832,7 @@ def __len__(self) -> int: |
1832 | 1832 | """ |
1833 | 1833 | return len(self._attributes) |
1834 | 1834 |
|
1835 | | - def __getitem__(self, key: Type[Attribute]) -> Any: |
| 1835 | + def __getitem__(self, key: Type[Attribute]) -> typing_Any: |
1836 | 1836 | """Index access for returning attributes on this project. |
1837 | 1837 |
|
1838 | 1838 | :param key: The attribute type. |
|
0 commit comments