Skip to content

Commit 6cfb8a4

Browse files
committed
Remove unneded 'type: ignore' comments
The new version of mypy doesn't need some of our 'type: ignore' comments that we currently have.
1 parent 431aa41 commit 6cfb8a4

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/memray/_ipython/flamegraph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def memray_flamegraph(self, line: str, cell: str) -> None:
227227
)
228228
dump_file.unlink()
229229
pprint(f"Results saved to [bold cyan]{flamegraph_path}")
230-
display(IFrame(flamegraph_path, width="100%", height="600")) # type: ignore
230+
display(IFrame(flamegraph_path, width="100%", height="600"))
231231

232232

233233
assert FlamegraphMagics.memray_flamegraph.__doc__ is not None

src/memray/commands/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
try:
1111
from typing import Protocol
1212
except ImportError:
13-
from typing_extensions import Protocol # type: ignore
13+
from typing_extensions import Protocol
1414

1515
from memray._errors import MemrayCommandError
1616
from memray._errors import MemrayError

src/memray/commands/attach.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
try:
2525
from typing import Literal
2626
except ImportError:
27-
from typing_extensions import Literal # type: ignore
27+
from typing_extensions import Literal
2828

2929
TrackingMode = Literal["ACTIVATE", "DEACTIVATE", "FOR_DURATION"]
3030

0 commit comments

Comments
 (0)