Skip to content

Commit 6870ef1

Browse files
add a helpful comment to ClassTypeHint.get_parameter_map()
1 parent 3fe16a7 commit 6870ef1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/typeapi/typehint.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,8 @@ def bases(self) -> "Tuple[Any, ...]":
274274
def get_parameter_map(self) -> Dict[Any, Any]:
275275
if not self.args:
276276
return {}
277+
# We need to look at the parameters of the original, un-parameterized type. That's why we can't
278+
# use self.parameters.
277279
return dict(zip(TypeHint(self.type).parameters, self.args))
278280

279281

0 commit comments

Comments
 (0)