Skip to content

Commit 8c3bfcb

Browse files
committed
Fixed broken type hints.
1 parent b6230f9 commit 8c3bfcb

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

pyEDAA/ProjectModel/__init__.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
from os.path import relpath as path_relpath
4141
from pathlib import Path as pathlib_Path
4242
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
4444

4545
from pyTooling.Common import getFullyQualifiedName
4646
from pyTooling.Decorators import export
@@ -259,7 +259,7 @@ def __len__(self) -> int:
259259
"""
260260
return len(self._attributes)
261261

262-
def __getitem__(self, key: Type[Attribute]) -> Any:
262+
def __getitem__(self, key: Type[Attribute]) -> typing_Any:
263263
"""Index access for returning attributes on this file.
264264
265265
:param key: The attribute type.
@@ -1077,7 +1077,7 @@ def __len__(self) -> int:
10771077
"""
10781078
return len(self._attributes)
10791079

1080-
def __getitem__(self, key: Type[Attribute]) -> Any:
1080+
def __getitem__(self, key: Type[Attribute]) -> typing_Any:
10811081
"""Index access for returning attributes on this fileset.
10821082
10831083
:param key: The attribute type.
@@ -1138,7 +1138,7 @@ class VHDLLibrary(metaclass=ExtendedType, slots=True):
11381138
_files: List[File]
11391139
_vhdlVersion: VHDLVersion
11401140

1141-
_attributes: Dict[Attribute, Any]
1141+
_attributes: Dict[Attribute, typing_Any]
11421142
_dependencyNode: Vertex
11431143

11441144
def __init__(
@@ -1282,7 +1282,7 @@ def __len__(self) -> int:
12821282
"""
12831283
return len(self._attributes)
12841284

1285-
def __getitem__(self, key: Type[Attribute]) -> Any:
1285+
def __getitem__(self, key: Type[Attribute]) -> typing_Any:
12861286
"""Index access for returning attributes on this VHDL library.
12871287
12881288
:param key: The attribute type.
@@ -1640,7 +1640,7 @@ def __len__(self) -> int:
16401640
"""
16411641
return len(self._attributes)
16421642

1643-
def __getitem__(self, key: Type[Attribute]) -> Any:
1643+
def __getitem__(self, key: Type[Attribute]) -> typing_Any:
16441644
"""Index access for returning attributes on this design.
16451645
16461646
:param key: The attribute type.
@@ -1832,7 +1832,7 @@ def __len__(self) -> int:
18321832
"""
18331833
return len(self._attributes)
18341834

1835-
def __getitem__(self, key: Type[Attribute]) -> Any:
1835+
def __getitem__(self, key: Type[Attribute]) -> typing_Any:
18361836
"""Index access for returning attributes on this project.
18371837
18381838
:param key: The attribute type.

0 commit comments

Comments
 (0)