Skip to content

Commit 2b21d7e

Browse files
author
Test User
committed
wip
1 parent f60a192 commit 2b21d7e

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

CHANGELOG.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
Changes
22
=======
33

4+
5+
5.0.1
6+
~~~~~
7+
* ENH: improved type annotations and moved them inline
8+
9+
410
5.0.1
511
~~~~~
612
* FIX: Prevented duplicate or inconsistent profiler output under Python 3.14 when multiprocessing is used.

line_profiler/autoprofile/profmod_extractor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import ast
44
import os
55
import sys
6-
from typing import List, cast, Any
6+
from typing import List, cast, Any, Union
77
from .util_static import (modname_to_modpath, modpath_to_modname,
88
package_modpaths)
99

@@ -99,7 +99,7 @@ def _get_modnames_to_profile_from_prof_mod(
9999
if it fails, the item may point to an installed module rather than local script
100100
so we check if the item is path and whether that path exists, else skip the item.
101101
"""
102-
modpath = modname_to_modpath(mod, sys_path=cast(List[str | os.PathLike[Any]], new_sys_path))
102+
modpath = modname_to_modpath(mod, sys_path=cast(List[Union[str, os.PathLike[Any]]], new_sys_path))
103103
if modpath is None:
104104
"""if cannot convert to modpath, check if already path and if invalid"""
105105
if not os.path.exists(mod):

0 commit comments

Comments
 (0)