Skip to content

Commit

Permalink
mypy: remove redundant casts
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoddemus committed Sep 17, 2024
1 parent f2b0f96 commit 3e6175e
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions src/pytest_cpp/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from fnmatch import fnmatch
from pathlib import Path
from typing import Any
from typing import cast
from typing import Iterator
from typing import Sequence
from typing import Type
Expand Down Expand Up @@ -143,11 +142,8 @@ def from_parent( # type:ignore[override]
arguments: Sequence[str],
**kwargs: Any,
) -> CppFile:
return cast(
CppFile,
super().from_parent(
parent=parent, path=path, facade=facade, arguments=arguments
),
return super().from_parent(
parent=parent, path=path, facade=facade, arguments=arguments
)

def collect(self) -> Iterator[CppItem]:
Expand Down Expand Up @@ -188,11 +184,8 @@ def from_parent( # type:ignore[override]
arguments: Sequence[str],
**kwargs: Any,
) -> CppItem:
return cast(
CppItem,
super().from_parent(
name=name, parent=parent, facade=facade, arguments=arguments, **kwargs
),
return super().from_parent(
name=name, parent=parent, facade=facade, arguments=arguments, **kwargs
)

def runtest(self) -> None:
Expand Down

0 comments on commit 3e6175e

Please sign in to comment.