Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/pytest-dev/pytest
/ isimportable
Function
isimportable
src/_pytest/_py/path.py:1469–1472 ·
view source on GitHub ↗
(name)
Source
from the content-addressed store, hash-verified
1467
1468
1469
def
isimportable(name):
1470
if
name and (name[0].isalpha() or name[0] ==
"_"
):
1471
name = name.replace(
"_"
,
""
)
1472
return
not name or name.isalnum()
1473
1474
1475
local = LocalPath
Callers
2
pypkgpath
Method · 0.85
test_isimportable
Function · 0.85
Calls
no outgoing calls
Tested by
1
test_isimportable
Function · 0.68