Skip to content

Commit 174ef08

Browse files
committed
ignore type error, covered explicitly
1 parent fe88148 commit 174ef08

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

canopen/objectdictionary/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,10 @@ def __repr__(self) -> str:
280280
return f"<{type(self).__qualname__} {self.name!r} at {pretty_index(self.index)}>"
281281

282282
def __getitem__(self, subindex: Union[int, str]) -> ODVariable:
283-
var = self.names.get(subindex) or self.subindices.get(subindex)
283+
var = (
284+
self.names.get(subindex) # type: ignore[arg-type]
285+
or self.subindices.get(subindex) # type: ignore[arg-type]
286+
)
284287
if var is not None:
285288
# This subindex is defined
286289
pass

0 commit comments

Comments
 (0)