Skip to content

Commit

Permalink
Merge pull request #126 from nschloe/upd
Browse files Browse the repository at this point in the history
update
  • Loading branch information
nschloe authored Dec 18, 2021
2 parents 2a5a031 + b416131 commit c080340
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = tuna
version = 0.5.10
version = 0.5.11
author = Nico Schlömer
author_email = nico.schloemer@gmail.com
description = Visualize Python performance profiles
Expand Down
5 changes: 3 additions & 2 deletions tuna/magics.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
from __future__ import annotations

import html
import re
import tempfile
import warnings
from pathlib import Path
from typing import Optional

from IPython.core.magic import register_line_cell_magic
from IPython.display import HTML
Expand Down Expand Up @@ -56,7 +57,7 @@ def _display_tuna(


@register_line_cell_magic
def tuna(line: str, cell: Optional[str] = None) -> HTML:
def tuna(line: str, cell: str | None = None) -> HTML:
ip = get_ipython() # noqa: F821
with tempfile.TemporaryDirectory() as tmp_dir:
prun_fname = f"{tmp_dir}/prun"
Expand Down

0 comments on commit c080340

Please sign in to comment.