Skip to content

Commit 3d212e3

Browse files
committed
Minor type fixes
1 parent 4248396 commit 3d212e3

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

line_profiler/line_profiler.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,6 @@ def _get_aggregated_timings(stats_objs):
381381
# rounding errors
382382
stats_objs = sorted(stats_objs, key=operator.attrgetter('unit'))
383383
unit = stats_objs[-1].unit
384-
# type: dict[tuple[str, int, int], dict[int, tuple[int, float]]
385384
timing_dict = {}
386385
for stats in stats_objs:
387386
factor = stats.unit / unit

line_profiler/toml_config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ def merge(template: dict[str, Any], supplied: dict[str, Any]):
220220
config = None
221221
else:
222222
return default_instance
223+
assert not isinstance(config, bool)
223224
if config is not None:
224225
# Promote to `Path` (and catch type errors) early
225226
config = pathlib.Path(config)

0 commit comments

Comments
 (0)